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 | 142d3dad0ab6870acb0d46d1f189d5e2e1f71b17 (patch) | |
tree | bd888fef4f393d53ac74284a9231037564487678 | |
parent | e4ccc602ba65838646f2632120069f3274619dd9 (diff) | |
download | samba-142d3dad0ab6870acb0d46d1f189d5e2e1f71b17.tar.gz samba-142d3dad0ab6870acb0d46d1f189d5e2e1f71b17.tar.xz samba-142d3dad0ab6870acb0d46d1f189d5e2e1f71b17.zip |
Writing decimal constants as "02" has been shown to cause cancer in
rats.
-rwxr-xr-x | source/include/rpc_spoolss.h | 6 | ||||
-rw-r--r-- | source/printing/nt_printing.c | 2 |
2 files changed, 4 insertions, 4 deletions
diff --git a/source/include/rpc_spoolss.h b/source/include/rpc_spoolss.h index 72b9d107187..0a8455ebbb1 100755 --- a/source/include/rpc_spoolss.h +++ b/source/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/source/printing/nt_printing.c b/source/printing/nt_printing.c index 68050163c46..481f61528d7 100644 --- a/source/printing/nt_printing.c +++ b/source/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; |