Changeset 478 for vendor/current/source3/printing/printing.c
- Timestamp:
- Aug 2, 2010, 6:40:21 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
vendor/current/source3/printing/printing.c
r414 r478 645 645 646 646 /**************************************************************************** 647 Parse a file name from the system spooler to generate a jobid.648 ****************************************************************************/649 650 static uint32 print_parse_jobid(char *fname)651 {652 int jobid;653 654 if (strncmp(fname,PRINT_SPOOL_PREFIX,strlen(PRINT_SPOOL_PREFIX)) != 0)655 return (uint32)-1;656 fname += strlen(PRINT_SPOOL_PREFIX);657 658 jobid = atoi(fname);659 if (jobid <= 0)660 return (uint32)-1;661 662 return (uint32)jobid;663 }664 665 /****************************************************************************666 647 List a unix job in the print database. 667 648 ****************************************************************************/ … … 2610 2591 return True; 2611 2592 } 2612 2613 pjob->smbjob = jobid;2614 2593 2615 2594 ret = (*(current_printif->job_submit))(snum, pjob);
Note:
See TracChangeset
for help on using the changeset viewer.