diff options
author | Jeremy Allison <jra@samba.org> | 2002-07-11 00:06:29 +0000 |
---|---|---|
committer | Jeremy Allison <jra@samba.org> | 2002-07-11 00:06:29 +0000 |
commit | 25148a148c1bec680924909722d59d0d47c795ae (patch) | |
tree | b856cfccc097933b09b5c8cea3b08cba879bd74d /source3/printing/print_generic.c | |
parent | 78722434a6511f06b8ea7da0b8a4ca08c8980c04 (diff) | |
download | samba-25148a148c1bec680924909722d59d0d47c795ae.tar.gz samba-25148a148c1bec680924909722d59d0d47c795ae.tar.bz2 samba-25148a148c1bec680924909722d59d0d47c795ae.zip |
*Experimental* new large-scaling printer code. Splits printing.tdb into
a separate tdb per printer, but only keeps (currently one) tdb open at
a time (although this is easily changed by changing a #define). Needs
scalability testing with large numbers of printers now....
Jeremy.
(This used to be commit b0909cfa14fc7ef29d2b98b56d52723570da782a)
Diffstat (limited to 'source3/printing/print_generic.c')
-rw-r--r-- | source3/printing/print_generic.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/source3/printing/print_generic.c b/source3/printing/print_generic.c index a32521c721..4d77b827bf 100644 --- a/source3/printing/print_generic.c +++ b/source3/printing/print_generic.c @@ -55,7 +55,7 @@ static int print_run_command(int snum,char *command, int *outfd, ...) { pstring syscmd; - char *p, *arg; + char *arg; int ret; va_list ap; va_start(ap, outfd); @@ -75,9 +75,7 @@ static int print_run_command(int snum,char *command, int *outfd, ...) } va_end(ap); - p = PRINTERNAME(snum); - - pstring_sub(syscmd, "%p", p); + pstring_sub(syscmd, "%p", PRINTERNAME(snum)); standard_sub_snum(snum,syscmd,sizeof(syscmd)); ret = smbrun(syscmd,outfd); |