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

r555: Fix big-endian storage of jobids in jobs_changed list. Found during

debugging of 1279
(This used to be commit 7c1cfb16c0b2f0128afca0b01036567253a3f92a)
parent 72d124af
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -1905,10 +1905,12 @@ static BOOL allocate_print_jobid(struct tdb_print_db *pdb, int snum, const char
static BOOL add_to_jobs_changed(struct tdb_print_db *pdb, uint32 jobid)
{
	TDB_DATA data, key;
	uint32 store_jobid;

	key.dptr = "INFO/jobs_changed";
	key.dsize = strlen(key.dptr);
	data.dptr = (char *)&jobid;
	SIVAL(&store_jobid, 0, jobid);
	data.dptr = (char *)&store_jobid;
	data.dsize = 4;

	DEBUG(10,("add_to_jobs_changed: Added jobid %u\n", (unsigned int)jobid ));