]> git.sur5r.net Git - bacula/bacula/blobdiff - bacula/src/lib/bnet_pkt.c
- Correct compiler complaints in wx-console and tray-monitor.
[bacula/bacula] / bacula / src / lib / bnet_pkt.c
index a803866c3c5054cb23a153757bd6822a54369338..d84d241b5f65bc967bfc2cb0f3998141abbb41e8 100644 (file)
@@ -30,7 +30,7 @@
 
 #include "bacula.h"
 
-/* 
+/*
  * Receive a message from the other end. Each message consists of
  * two packets. The first is a header that contains the size
  * of the data that follows in the second packet.
@@ -39,7 +39,7 @@
  * Returns -1 on hard end of file (i.e. network connection close)
  * Returns -2 on error
  */
-int32_t 
+int32_t
 bnet_recv_pkt(BSOCK *bsock, BPKT *pkt, int *version)
 {
    unser_declare;
@@ -50,7 +50,7 @@ bnet_recv_pkt(BSOCK *bsock, BPKT *pkt, int *version)
    unser_uint16(lversion);
    *version = (int)lversion;
 
-   
+
    for ( ; pkt->type != BP_EOF; pkt++) {
       if (pkt->id) {
         ser_int8(BP_ID);
@@ -86,11 +86,11 @@ bnet_recv_pkt(BSOCK *bsock, BPKT *pkt, int *version)
         ser_bytes((char *)pkt->value, pkt->len);
         break;
       default:
-         Emsg1(M_ABORT, 0, _("Unknown BPKT type: %d\n"), pkt->type);
+        Emsg1(M_ABORT, 0, _("Unknown BPKT type: %d\n"), pkt->type);
       }
    }
    unser_end(bsock->msg, 0);
-   
+
 }
 
 /*
@@ -144,7 +144,7 @@ bnet_send_pkt(BSOCK *bsock, BPKT *pkt, int version)
         ser_bytes((char *)pkt->value, pkt->len);
         break;
       default:
-         Emsg1(M_ABORT, 0, _("Unknown BPKT type: %d\n"), pkt->type);
+        Emsg1(M_ABORT, 0, _("Unknown BPKT type: %d\n"), pkt->type);
       }
    }
    ser_end(bsock->msg, 0);