Changeset 480 for trunk/server/source3/printing/lpq_parse.c
- Timestamp:
- Aug 2, 2010, 8:16:45 PM (15 years ago)
- Location:
- trunk/server
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/server
- Property svn:mergeinfo changed
/vendor/current merged: 453,478
- Property svn:mergeinfo changed
-
trunk/server/source3/printing/lpq_parse.c
r414 r480 19 19 20 20 #include "includes.h" 21 #include "printing.h" 21 22 22 23 static const char *Months[13] = { "Jan", "Feb", "Mar", "Apr", "May", "Jun", … … 1151 1152 return ret; 1152 1153 } 1154 1155 /**************************************************************************** 1156 Parse a file name from the system spooler to generate a jobid. 1157 ****************************************************************************/ 1158 1159 uint32_t print_parse_jobid(const char *fname) 1160 { 1161 int jobid; 1162 const char *p = strstr_m(fname,PRINT_SPOOL_PREFIX); 1163 1164 if (!p) { 1165 return (uint32_t)-1; 1166 } 1167 p += strlen(PRINT_SPOOL_PREFIX); 1168 jobid = atoi(p); 1169 if (jobid <= 0) { 1170 return (uint32_t)-1; 1171 } 1172 return (uint32_t)jobid; 1173 }
Note:
See TracChangeset
for help on using the changeset viewer.