Commit 88adbfa1 authored by Jim McDonough's avatar Jim McDonough Committed by Gerald (Jerry) Carter
Browse files

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)
parent a6e6cd56
Loading
Loading
Loading
Loading
+3 −3
Original line number Diff line number Diff line
@@ -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;
	}