diff options
author | Jelmer Vernooij <jelmer@samba.org> | 2002-08-17 16:31:24 +0000 |
---|---|---|
committer | Jelmer Vernooij <jelmer@samba.org> | 2002-08-17 16:31:24 +0000 |
commit | 669a39fae36f8bc60753c9b352556ef8ffaeb568 (patch) | |
tree | 51a2b6a3cf7d3f735ca0b00218901227877659c4 /source3/printing/load.c | |
parent | ec85fa62f2a824408d789c8ca447623a69642e05 (diff) | |
download | samba-669a39fae36f8bc60753c9b352556ef8ffaeb568.tar.gz samba-669a39fae36f8bc60753c9b352556ef8ffaeb568.tar.xz samba-669a39fae36f8bc60753c9b352556ef8ffaeb568.zip |
Sync 3.0 branch with HEAD
(This used to be commit eac75549c398f208484ae735d5a5931fed6d0e99)
Diffstat (limited to 'source3/printing/load.c')
-rw-r--r-- | source3/printing/load.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/source3/printing/load.c b/source3/printing/load.c index ed967fb0a7..cd90cbb6f3 100644 --- a/source3/printing/load.c +++ b/source3/printing/load.c @@ -38,7 +38,7 @@ auto-load some homes and printer services ***************************************************************************/ static void add_auto_printers(void) { - char *p; + const char *p; int printers; char *str = strdup(lp_auto_services()); @@ -47,9 +47,9 @@ static void add_auto_printers(void) printers = lp_servicenumber(PRINTERS_NAME); if (printers < 0) { - SAFE_FREE(str); - return; - } + SAFE_FREE(str); + return; + } for (p=strtok(str,LIST_SEP);p;p=strtok(NULL,LIST_SEP)) { if (lp_servicenumber(p) >= 0) continue; |