mirror of
https://github.com/clearml/dropbear
synced 2025-03-14 15:48:24 +00:00
Turn type and term local variables into char *
This commit is contained in:
parent
e3c6a86b1e
commit
bfd730aa4c
@ -56,12 +56,12 @@ const struct ChanType clichansess = {
|
|||||||
|
|
||||||
static void cli_chansessreq(struct Channel *channel) {
|
static void cli_chansessreq(struct Channel *channel) {
|
||||||
|
|
||||||
unsigned char* type = NULL;
|
char* type = NULL;
|
||||||
int wantreply;
|
int wantreply;
|
||||||
|
|
||||||
TRACE(("enter cli_chansessreq"))
|
TRACE(("enter cli_chansessreq"))
|
||||||
|
|
||||||
type = buf_getstring(ses.payload, NULL);
|
type = (char *) buf_getstring(ses.payload, NULL);
|
||||||
wantreply = buf_getbool(ses.payload);
|
wantreply = buf_getbool(ses.payload);
|
||||||
|
|
||||||
if (strcmp(type, "exit-status") == 0) {
|
if (strcmp(type, "exit-status") == 0) {
|
||||||
@ -272,7 +272,7 @@ void cli_chansess_winchange() {
|
|||||||
|
|
||||||
static void send_chansess_pty_req(struct Channel *channel) {
|
static void send_chansess_pty_req(struct Channel *channel) {
|
||||||
|
|
||||||
unsigned char* term = NULL;
|
char* term = NULL;
|
||||||
|
|
||||||
TRACE(("enter send_chansess_pty_req"))
|
TRACE(("enter send_chansess_pty_req"))
|
||||||
|
|
||||||
@ -286,7 +286,7 @@ static void send_chansess_pty_req(struct Channel *channel) {
|
|||||||
if (term == NULL) {
|
if (term == NULL) {
|
||||||
term = "vt100"; /* Seems a safe default */
|
term = "vt100"; /* Seems a safe default */
|
||||||
}
|
}
|
||||||
buf_putstring(ses.writepayload, term, strlen(term));
|
buf_putstring(ses.writepayload, (const unsigned char *)term, strlen(term));
|
||||||
|
|
||||||
/* Window size */
|
/* Window size */
|
||||||
put_winsize();
|
put_winsize();
|
||||||
|
Loading…
Reference in New Issue
Block a user