summaryrefslogtreecommitdiff
path: root/source3/rpc_parse/parse_spoolss.c
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2000-06-29 00:52:40 +0000
committerJeremy Allison <jra@samba.org>2000-06-29 00:52:40 +0000
commit774b06ee212ee764fb2e17c1f366d0de552c07cc (patch)
tree2fbe91f19a15052415c022e4a7d6d56dbbbf3775 /source3/rpc_parse/parse_spoolss.c
parent8980d53e7ccd85769357c45183b8670123489fb5 (diff)
downloadsamba-774b06ee212ee764fb2e17c1f366d0de552c07cc.tar.gz
samba-774b06ee212ee764fb2e17c1f366d0de552c07cc.tar.bz2
samba-774b06ee212ee764fb2e17c1f366d0de552c07cc.zip
Tidy up current spool code - added some JRATEST ifdefs to allow
experimentation with what is making spoolss.exe crash - may be removed later. Jeremy. (This used to be commit f3fe384dc39ce49c639a7adf35179a50cb86abf0)
Diffstat (limited to 'source3/rpc_parse/parse_spoolss.c')
-rw-r--r--source3/rpc_parse/parse_spoolss.c22
1 files changed, 11 insertions, 11 deletions
diff --git a/source3/rpc_parse/parse_spoolss.c b/source3/rpc_parse/parse_spoolss.c
index 0c12623e47..de20b684cc 100644
--- a/source3/rpc_parse/parse_spoolss.c
+++ b/source3/rpc_parse/parse_spoolss.c
@@ -823,9 +823,9 @@ BOOL spoolss_io_r_getprinterdata(char *desc, SPOOL_R_GETPRINTERDATA *r_u, prs_st
if (!prs_align(ps))
return False;
- if (!prs_uint32("type", ps, depth, &(r_u->type)))
+ if (!prs_uint32("type", ps, depth, &r_u->type))
return False;
- if (!prs_uint32("size", ps, depth, &(r_u->size)))
+ if (!prs_uint32("size", ps, depth, &r_u->size))
return False;
if (!prs_uint8s(False,"data", ps, depth, r_u->data, r_u->size))
@@ -834,9 +834,9 @@ BOOL spoolss_io_r_getprinterdata(char *desc, SPOOL_R_GETPRINTERDATA *r_u, prs_st
if (!prs_align(ps))
return False;
- if (!prs_uint32("needed", ps, depth, &(r_u->needed)))
+ if (!prs_uint32("needed", ps, depth, &r_u->needed))
return False;
- if (!prs_uint32("status", ps, depth, &(r_u->status)))
+ if (!prs_uint32("status", ps, depth, &r_u->status))
return False;
return True;
@@ -2844,7 +2844,7 @@ BOOL spoolss_io_r_getprinter(char *desc, SPOOL_R_GETPRINTER *r_u, prs_struct *ps
if (!prs_align(ps))
return False;
-
+
if (!prs_uint32("needed", ps, depth, &r_u->needed))
return False;
@@ -4545,18 +4545,18 @@ BOOL spoolss_io_q_setprinterdata(char *desc, SPOOL_Q_SETPRINTERDATA *q_u, prs_st
if(!prs_align(ps))
return False;
- if(!smb_io_pol_hnd("printer handle", &(q_u->handle), ps, depth))
+ if(!smb_io_pol_hnd("printer handle", &q_u->handle, ps, depth))
return False;
- if(!smb_io_unistr2("", &(q_u->value), True, ps, depth))
+ if(!smb_io_unistr2("", &q_u->value, True, ps, depth))
return False;
if(!prs_align(ps))
return False;
- if(!prs_uint32("type", ps, depth, &(q_u->type)))
+ if(!prs_uint32("type", ps, depth, &q_u->type))
return False;
- if(!prs_uint32("max_len", ps, depth, &(q_u->max_len)))
+ if(!prs_uint32("max_len", ps, depth, &q_u->max_len))
return False;
switch (q_u->type)
@@ -4575,7 +4575,7 @@ BOOL spoolss_io_q_setprinterdata(char *desc, SPOOL_Q_SETPRINTERDATA *q_u, prs_st
break;
}
- if(!prs_uint32("real_len", ps, depth, &(q_u->real_len)))
+ if(!prs_uint32("real_len", ps, depth, &q_u->real_len))
return False;
return True;
@@ -4595,7 +4595,7 @@ BOOL spoolss_io_r_setprinterdata(char *desc, SPOOL_R_SETPRINTERDATA *r_u, prs_st
if(!prs_align(ps))
return False;
- if(!prs_uint32("status", ps, depth, &(r_u->status)))
+ if(!prs_uint32("status", ps, depth, &r_u->status))
return False;
return True;