diff options
author | Martin Pool <mbp@samba.org> | 2001-12-03 02:30:27 +0000 |
---|---|---|
committer | Martin Pool <mbp@samba.org> | 2001-12-03 02:30:27 +0000 |
commit | e0adf6e27ef7d66be5908aba4466cc11b3841eab (patch) | |
tree | 15488ff8aba7ee7e6a359fc31e411ac8553a5564 /source3 | |
parent | 78169af90a3594a574f0e19cd60f27c870a9bcd2 (diff) | |
download | samba-e0adf6e27ef7d66be5908aba4466cc11b3841eab.tar.gz samba-e0adf6e27ef7d66be5908aba4466cc11b3841eab.tar.bz2 samba-e0adf6e27ef7d66be5908aba4466cc11b3841eab.zip |
Writing decimal constants as "02" has been shown to cause cancer in
rats.
(This used to be commit 142d3dad0ab6870acb0d46d1f189d5e2e1f71b17)
Diffstat (limited to 'source3')
-rwxr-xr-x | source3/include/rpc_spoolss.h | 6 | ||||
-rw-r--r-- | source3/printing/nt_printing.c | 2 |
2 files changed, 4 insertions, 4 deletions
diff --git a/source3/include/rpc_spoolss.h b/source3/include/rpc_spoolss.h index 72b9d10718..0a8455ebbb 100755 --- a/source3/include/rpc_spoolss.h +++ b/source3/include/rpc_spoolss.h @@ -200,9 +200,9 @@ #define JOB_WRITE STANDARD_RIGHTS_WRITE_ACCESS|JOB_ACCESS_ADMINISTER #define JOB_EXECUTE STANDARD_RIGHTS_EXECUTE_ACCESS|JOB_ACCESS_ADMINISTER -#define ONE_VALUE 01 -#define TWO_VALUE 02 -#define POINTER 03 +#define ONE_VALUE 1 +#define TWO_VALUE 2 +#define POINTER 3 #define PRINTER_NOTIFY_TYPE 0x00 #define JOB_NOTIFY_TYPE 0x01 diff --git a/source3/printing/nt_printing.c b/source3/printing/nt_printing.c index 68050163c4..481f61528d 100644 --- a/source3/printing/nt_printing.c +++ b/source3/printing/nt_printing.c @@ -2091,7 +2091,7 @@ NT_DEVICEMODE *construct_nt_devicemode(const fstring default_devicename) nt_devmode->paperlength = 0; nt_devmode->paperwidth = 0; nt_devmode->scale = 0x64; - nt_devmode->copies = 01; + nt_devmode->copies = 1; nt_devmode->defaultsource = BIN_FORMSOURCE; nt_devmode->printquality = RES_HIGH; /* 0x0258 */ nt_devmode->color = COLOR_MONOCHROME; |