]> git.sur5r.net Git - bacula/bacula/commitdiff
Fix compilation issue of wx-console #1778
authorEric Bollengier <eric@eb.homelinux.org>
Wed, 2 Nov 2011 13:49:17 +0000 (14:49 +0100)
committerKern Sibbald <kern@sibbald.com>
Sat, 20 Apr 2013 12:50:11 +0000 (14:50 +0200)
bacula/src/wx-console/console_thread.cpp

index bb4a8ce7709982a777817a0d2dd3b27b4abb88f0..50fef3427835734e2559bf314cc686d7f081f955 100644 (file)
@@ -483,7 +483,7 @@ void* console_thread::Entry() {
          csprint(UA_sock->msg);
       }
       else if (stat == BNET_SIGNAL) {
-         if (UA_sock->msglen == BNET_PROMPT) {
+         if (UA_sock->msglen == BNET_SUB_PROMPT) {
             csprint(NULL, CS_PROMPT);
          } else if (UA_sock->msglen == BNET_EOD) {
             last_is_eod = 1;
@@ -534,7 +534,7 @@ void console_thread::Write(const char* str)
    if (UA_sock) {
       UA_sock->msglen = (int32_t)strlen(str);
       pm_strcpy(&UA_sock->msg, str);
-      UA_sock->_send();
+      UA_sock->send();
    } else if (choosingdirector) {
 //      wxString number = str;
 //      number.RemoveLast(); /* Removes \n */