summaryrefslogtreecommitdiff
path: root/source3/printing
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/printing
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/printing')
-rw-r--r--source3/printing/nt_printing.c2
-rw-r--r--source3/printing/printfsp.c3
2 files changed, 3 insertions, 2 deletions
diff --git a/source3/printing/nt_printing.c b/source3/printing/nt_printing.c
index 7faeb60efa..97d01d43a5 100644
--- a/source3/printing/nt_printing.c
+++ b/source3/printing/nt_printing.c
@@ -22,6 +22,7 @@
#include "includes.h"
+extern struct current_user current_user;
extern DOM_SID global_sid_World;
static TDB_CONTEXT *tdb_forms; /* used for forms files */
@@ -5115,7 +5116,6 @@ BOOL print_access_check(struct current_user *user, int snum, int access_type)
BOOL result;
const char *pname;
TALLOC_CTX *mem_ctx = NULL;
- extern struct current_user current_user;
SE_PRIV se_printop = SE_PRINT_OPERATOR;
/* If user is NULL then use the current_user structure */
diff --git a/source3/printing/printfsp.c b/source3/printing/printfsp.c
index 7c5de46870..25f4d9bd46 100644
--- a/source3/printing/printfsp.c
+++ b/source3/printing/printfsp.c
@@ -21,6 +21,8 @@
#include "includes.h"
+extern struct current_user current_user;
+
/***************************************************************************
open a print file and setup a fsp for it. This is a wrapper around
print_job_start().
@@ -30,7 +32,6 @@ files_struct *print_fsp_open(connection_struct *conn, char *fname)
{
int jobid;
SMB_STRUCT_STAT sbuf;
- extern struct current_user current_user;
files_struct *fsp = file_new(conn);
fstring name;