summaryrefslogtreecommitdiff
path: root/source4/include
diff options
context:
space:
mode:
authorHerb Lewis <herb@samba.org>2003-08-14 21:56:26 +0000
committerHerb Lewis <herb@samba.org>2003-08-14 21:56:26 +0000
commit2efe201fa4082f0aad7360b9f6f21c7683a29e96 (patch)
tree734b788772b12e5a322ab002c6674f93dae1701b /source4/include
parenta19e269c2c401766fe0e44ea0a1daaad14f06f70 (diff)
downloadsamba-2efe201fa4082f0aad7360b9f6f21c7683a29e96.tar.gz
samba-2efe201fa4082f0aad7360b9f6f21c7683a29e96.tar.bz2
samba-2efe201fa4082f0aad7360b9f6f21c7683a29e96.zip
client/client.c - cannot initialize struct with non-const values
include/byteorder.h - fix for IRIX compiler - cannot cast an LVALUE include/smb_interfaces.h - remove empty structure source/lib/debug.c - void functions cannot return value libcli/clifile.c - cannot assign *struct to struct (This used to be commit 9a724762012f55d21d44ea87add7daf21f7414d1)
Diffstat (limited to 'source4/include')
-rw-r--r--source4/include/byteorder.h2
-rw-r--r--source4/include/smb_interfaces.h3
2 files changed, 1 insertions, 4 deletions
diff --git a/source4/include/byteorder.h b/source4/include/byteorder.h
index ed0eababdd..94a346f89d 100644
--- a/source4/include/byteorder.h
+++ b/source4/include/byteorder.h
@@ -106,7 +106,7 @@ it also defines lots of intermediate macros, just ignore those :-)
#endif
#define CVAL(buf,pos) ((unsigned)(((const unsigned char *)(buf))[pos]))
-#define CVAL_NC(buf,pos) ((unsigned)(((unsigned char *)(buf))[pos])) /* Non-const version of CVAL */
+#define CVAL_NC(buf,pos) (((unsigned char *)(buf))[pos]) /* Non-const version of CVAL */
#define PVAL(buf,pos) (CVAL(buf,pos))
#define SCVAL(buf,pos,val) (CVAL_NC(buf,pos) = (val))
diff --git a/source4/include/smb_interfaces.h b/source4/include/smb_interfaces.h
index 30e5efe97e..575590c364 100644
--- a/source4/include/smb_interfaces.h
+++ b/source4/include/smb_interfaces.h
@@ -1454,9 +1454,6 @@ union smb_lock {
struct {
enum lock_level level;
- struct {
-
- } in;
} generic;
/* SMBlock interface */