From: Kern Sibbald Date: Sun, 15 Nov 2009 16:05:07 +0000 (+0100) Subject: Change some console.c socket calls into class calls X-Git-Tag: Release-7.0.0~2568 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=e2ab615d46f148cd839696dc9f9955c8acf377a4;p=bacula%2Fbacula Change some console.c socket calls into class calls --- diff --git a/bacula/src/console/console.c b/bacula/src/console/console.c index 05892a718a..f8cb0cd1c5 100644 --- a/bacula/src/console/console.c +++ b/bacula/src/console/console.c @@ -273,13 +273,13 @@ static void read_and_process_input(FILE *input, BSOCK *UA_sock) } else if (stat == 0) { /* timeout */ if (strcmp(prompt, "*") == 0) { tid = start_bsock_timer(UA_sock, timeout); - bnet_fsend(UA_sock, ".messages"); + UA_sock->fsend(".messages"); stop_bsock_timer(tid); } else { continue; } } else { - at_prompt = FALSE; + at_prompt = false; /* @ => internal command for us */ if (UA_sock->msg[0] == '@') { parse_args(UA_sock->msg, &args, &argc, argk, argv, MAX_CMD_ARGS); @@ -289,7 +289,7 @@ static void read_and_process_input(FILE *input, BSOCK *UA_sock) continue; } tid = start_bsock_timer(UA_sock, timeout); - if (!bnet_send(UA_sock)) { /* send command */ + if (!UA_sock->send()) { /* send command */ stop_bsock_timer(tid); break; /* error */ } @@ -299,7 +299,7 @@ static void read_and_process_input(FILE *input, BSOCK *UA_sock) break; } tid = start_bsock_timer(UA_sock, timeout); - while ((stat = bnet_recv(UA_sock)) >= 0) { + while ((stat = UA_sock->recv()) >= 0) { if (at_prompt) { if (!stop) { sendit("\n");