diff options
author | David Disseldorp <ddiss@samba.org> | 2012-01-30 17:35:28 +0100 |
---|---|---|
committer | David Disseldorp <ddiss@samba.org> | 2012-06-26 16:10:39 +0200 |
commit | 4e33424581bcb33a32d7971f551a03d4087f75a0 (patch) | |
tree | e05f17e261d08fd0f1347818e7d21bb8e0cac8e3 /source3 | |
parent | fb2579e3eec80da5502aab539ed55301ebac3e2b (diff) | |
download | samba-4e33424581bcb33a32d7971f551a03d4087f75a0.tar.gz samba-4e33424581bcb33a32d7971f551a03d4087f75a0.tar.bz2 samba-4e33424581bcb33a32d7971f551a03d4087f75a0.zip |
s3-printing: remove print_parse_jobid()
With all callers fixed, it is now safe to remove.
Diffstat (limited to 'source3')
-rw-r--r-- | source3/include/printing.h | 1 | ||||
-rw-r--r-- | source3/printing/lpq_parse.c | 19 |
2 files changed, 0 insertions, 20 deletions
diff --git a/source3/include/printing.h b/source3/include/printing.h index 2b16d04c88..0e7a5f51fe 100644 --- a/source3/include/printing.h +++ b/source3/include/printing.h @@ -243,7 +243,6 @@ void printing_end(void); bool parse_lpq_entry(enum printing_types printing_type,char *line, print_queue_struct *buf, print_status_struct *status,bool first); -uint32_t print_parse_jobid(const char *fname); /* The following definitions come from printing/printing_db.c */ diff --git a/source3/printing/lpq_parse.c b/source3/printing/lpq_parse.c index ae5f75ea5f..21e7b37faf 100644 --- a/source3/printing/lpq_parse.c +++ b/source3/printing/lpq_parse.c @@ -1153,22 +1153,3 @@ bool parse_lpq_entry(enum printing_types printing_type,char *line, return ret; } -/**************************************************************************** - Parse a file name from the system spooler to generate a jobid. -****************************************************************************/ - -uint32_t print_parse_jobid(const char *fname) -{ - int jobid; - const char *p = strstr_m(fname,PRINT_SPOOL_PREFIX); - - if (!p) { - return (uint32_t)-1; - } - p += strlen(PRINT_SPOOL_PREFIX); - jobid = atoi(p); - if (jobid <= 0) { - return (uint32_t)-1; - } - return (uint32_t)jobid; -} |