1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-22 22:04:08 +03:00

s3:printing: Fix setting the first jobnum

This is just something logical. The define is called first jobnum but
the first one was always 101.

Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Stefan Metzmacher <metze@samba.org>
This commit is contained in:
Andreas Schneider 2017-07-12 13:14:08 +02:00 committed by Andreas Schneider
parent a19b08c9c3
commit 924e7f7c80

View File

@ -29,7 +29,7 @@
#undef malloc
#endif
#define PRINT_FIRSTJOB "100"
#define PRINT_FIRSTJOB 100
static TDB_CONTEXT *tdb;
@ -97,10 +97,11 @@ static int next_jobnum(char *printer)
/* Create next job index if none exists */
if (jobnum == -1) {
jobnum = atoi(PRINT_FIRSTJOB);
jobnum = PRINT_FIRSTJOB;
} else {
jobnum++;
}
jobnum++;
tdb_store_int32(tdb, keystr, jobnum);
tdb_unlock_bystring(tdb, keystr);