diff options
author | Herb Lewis <herb@samba.org> | 2005-04-06 16:28:04 +0000 |
---|---|---|
committer | Herb Lewis <herb@samba.org> | 2005-04-06 16:28:04 +0000 |
commit | 261e6660e43bfdcc5ff6e2ec9297053af1eebe2c (patch) | |
tree | 76eb8431f1185778c29fb3adbc8d1b0e724af38c /source/printing | |
parent | 830cd57aca089f6b446ca1b86cf2b47742926692 (diff) | |
download | samba-261e6660e43bfdcc5ff6e2ec9297053af1eebe2c.tar.gz samba-261e6660e43bfdcc5ff6e2ec9297053af1eebe2c.tar.xz samba-261e6660e43bfdcc5ff6e2ec9297053af1eebe2c.zip |
r6225: get rid of warnings from my compiler about nested externs
Diffstat (limited to 'source/printing')
-rw-r--r-- | source/printing/nt_printing.c | 2 | ||||
-rw-r--r-- | source/printing/printfsp.c | 3 |
2 files changed, 3 insertions, 2 deletions
diff --git a/source/printing/nt_printing.c b/source/printing/nt_printing.c index 7faeb60efa2..97d01d43a53 100644 --- a/source/printing/nt_printing.c +++ b/source/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/source/printing/printfsp.c b/source/printing/printfsp.c index 7c5de468701..25f4d9bd464 100644 --- a/source/printing/printfsp.c +++ b/source/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; |