]> 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 5de132b41975f3f41a135b7b7407a8409cc82577..d84d241b5f65bc967bfc2cb0f3998141abbb41e8 100644 (file)
 
  */
 
+#ifdef implemented
 
 #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.
@@ -38,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;
@@ -49,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);
@@ -85,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);
-   
+
 }
 
 /*
@@ -143,8 +144,10 @@ 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);
 }
+
+#endif