summaryrefslogtreecommitdiff
path: root/source3/include
diff options
context:
space:
mode:
authorHerb Lewis <herb@samba.org>2005-04-06 16:28:04 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 10:56:30 -0500
commit978ca8486031e43754a3c23757f361bf3a85f335 (patch)
tree109bd3ff560afcbd74296990d9554859cb2fb78f /source3/include
parent60dd0d0f9c277eb9852924aea81fee06b7395832 (diff)
downloadsamba-978ca8486031e43754a3c23757f361bf3a85f335.tar.gz
samba-978ca8486031e43754a3c23757f361bf3a85f335.tar.bz2
samba-978ca8486031e43754a3c23757f361bf3a85f335.zip
r6225: get rid of warnings from my compiler about nested externs
(This used to be commit efea76ac71412f8622cd233912309e91b9ea52da)
Diffstat (limited to 'source3/include')
-rw-r--r--source3/include/smb_macros.h8
1 files changed, 6 insertions, 2 deletions
diff --git a/source3/include/smb_macros.h b/source3/include/smb_macros.h
index e19c51884f..1076bd53e8 100644
--- a/source3/include/smb_macros.h
+++ b/source3/include/smb_macros.h
@@ -76,16 +76,20 @@
#define OPEN_CONN(conn) ((conn) && (conn)->open)
#define IS_IPC(conn) ((conn) && (conn)->ipc)
#define IS_PRINT(conn) ((conn) && (conn)->printer)
+/* you must add the following extern declaration to files using this macro
+ * extern struct current_user current_user;
+ */
#define FSP_BELONGS_CONN(fsp,conn) do {\
- extern struct current_user current_user;\
if (!((fsp) && (conn) && ((conn)==(fsp)->conn) && (current_user.vuid==(fsp)->vuid))) \
return(ERROR_DOS(ERRDOS,ERRbadfid));\
} while(0)
#define FNUM_OK(fsp,c) (OPEN_FSP(fsp) && (c)==(fsp)->conn && current_user.vuid==(fsp)->vuid)
+/* you must add the following extern declaration to files using this macro
+ * extern struct current_user current_user;
+ */
#define CHECK_FSP(fsp,conn) do {\
- extern struct current_user current_user;\
if (!FNUM_OK(fsp,conn)) \
return(ERROR_DOS(ERRDOS,ERRbadfid)); \
else if((fsp)->fd == -1) \