]> git.sesse.net Git - nbtscanner/blobdiff - nmb.c
Import nbtscanner 0.2.0.
[nbtscanner] / nmb.c
diff --git a/nmb.c b/nmb.c
index bb89ba9a1a052942838d30e898c9b7a98508d0d0..085aefb2a620d6642d22cc989aabc3ffe5ec9216 100644 (file)
--- a/nmb.c
+++ b/nmb.c
@@ -24,6 +24,7 @@
 #include <string.h>
 #include <stdlib.h>
 #include <unistd.h>
+#include <malloc.h>
 
 #include "nmb.h"
 #include "packet.h"
@@ -32,6 +33,7 @@
 
 void build_nbt_packet(struct nmb_packet *nmb, int name_trn_id)
 {
+       /* this could in theory be optimized, but I don't think it's worth it */
        nmb->header.name_trn_id = name_trn_id;
        nmb->header.opcode = 0;
        nmb->header.response = 0;