libsmb: Make it compile with -std=gnu99.
authorSascha Wildner <saw@online.de>
Wed, 6 Nov 2013 18:09:07 +0000 (19:09 +0100)
committerSascha Wildner <saw@online.de>
Wed, 6 Nov 2013 18:09:07 +0000 (19:09 +0100)
contrib/smbfs/lib/smb/mbuf.c
contrib/smbfs/lib/smb/rq.c
lib/libsmb/Makefile

index 93dd9bf..2193d50 100644 (file)
@@ -34,6 +34,7 @@
 
 #include <sys/types.h>
 #include <sys/endian.h>
+#include <arpa/inet.h>
 #include <ctype.h>
 #include <errno.h>
 #include <stdio.h>
index 7268e58..d70ab6e 100644 (file)
@@ -163,7 +163,7 @@ smb_t2_request(struct smb_ctx *ctx, int setup, int setupcount,
        bzero(&krq, sizeof(krq));
        krq.ioc_setup[0] = setup;
        krq.ioc_setupcnt = setupcount;
-       krq.ioc_name = name;
+       krq.ioc_name = (char *)name;
        krq.ioc_tparamcnt = tparamcnt;
        krq.ioc_tparam = tparam;
        krq.ioc_tdatacnt = tdatacnt;
index 5f475da..9566998 100644 (file)
@@ -2,8 +2,7 @@
 
 LIB=           smb
 
-CSTD?=         gnu89
-WARNS?=                0
+WARNS?=                1
 
 SHLIB_MAJOR=   2