diff options
author | Jim McDonough <jmcd@samba.org> | 2004-05-07 17:17:25 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 10:51:29 -0500 |
commit | 88adbfa1f7e136705fad2fe2926e4053808914ab (patch) | |
tree | 1954f327352c8b91dd5dc9ff6f44ba473733e8a3 | |
parent | a6e6cd569109f2176a6ef0450f681674a897f58a (diff) | |
download | samba-88adbfa1f7e136705fad2fe2926e4053808914ab.tar.gz samba-88adbfa1f7e136705fad2fe2926e4053808914ab.tar.bz2 samba-88adbfa1f7e136705fad2fe2926e4053808914ab.zip |
r560: Fix bugzilla 1279: cannot control individual print jobs using cups
Store the print job using a little-endian key.
(This used to be commit e0491dae989ea289438de3bdf29d8810d409a01b)
-rw-r--r-- | source3/printing/printing.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/source3/printing/printing.c b/source3/printing/printing.c index fd123267d1..2355dd1450 100644 --- a/source3/printing/printing.c +++ b/source3/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; } |