diff options
author | Jim McDonough <jmcd@samba.org> | 2004-05-07 17:17:25 +0000 |
---|---|---|
committer | Jim McDonough <jmcd@samba.org> | 2004-05-07 17:17:25 +0000 |
commit | 92f7881073e44804fec527ef6878c41a051968ef (patch) | |
tree | 8ca13ddb4c2acfdbffb1d61f175a8b6c8d0d2daa /source/printing/printing.c | |
parent | 84457cfe81b331b6bbf3f6288076d61960e4ec01 (diff) | |
download | samba-92f7881073e44804fec527ef6878c41a051968ef.tar.gz samba-92f7881073e44804fec527ef6878c41a051968ef.tar.xz samba-92f7881073e44804fec527ef6878c41a051968ef.zip |
r560: Fix bugzilla 1279: cannot control individual print jobs using cups
Store the print job using a little-endian key.
Diffstat (limited to 'source/printing/printing.c')
-rw-r--r-- | source/printing/printing.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/source/printing/printing.c b/source/printing/printing.c index fd123267d17..2355dd14506 100644 --- a/source/printing/printing.c +++ b/source/printing/printing.c @@ -249,7 +249,7 @@ static TDB_DATA print_key(uint32 jobid) static uint32 j; TDB_DATA ret; - j = jobid; + SIVAL(&j, 0, jobid); ret.dptr = (void *)&j; ret.dsize = sizeof(j); return ret; @@ -358,9 +358,9 @@ static int unixjob_traverse_fn(TDB_CONTEXT *the_tdb, TDB_DATA key, return 0; if (*sysjob == pjob->sysjob) { - uint32 *jobid = (uint32 *)key.dptr; + uint32 jobid = IVAL(key.dptr,0); - sysjob_to_jobid_value = *jobid; + sysjob_to_jobid_value = jobid; return 1; } |