Ignore:
Timestamp:
Nov 29, 2012, 1:59:04 PM (13 years ago)
Author:
Silvan Scherrer
Message:

Samba Server: updated trunk to 3.6.9

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/server/source3/printing/lpq_parse.c

    r480 r751  
    165165        }
    166166
    167         buf->job = atoi(tok[JOBTOK]);
     167        buf->sysjob = atoi(tok[JOBTOK]);
    168168        buf->size = atoi(tok[TOTALTOK]);
    169169        buf->status = strequal(tok[RANKTOK],"active")?LPQ_PRINTING:LPQ_QUEUED;
     
    282282        }
    283283
    284         buf->job = atoi(tokarr[LPRNG_JOBTOK]);
     284        buf->sysjob = atoi(tokarr[LPRNG_JOBTOK]);
    285285        buf->size = atoi(tokarr[LPRNG_TOTALTOK]);
    286286
     
    385385                        }
    386386
    387                         buf->job = atoi(tok[1]);
     387                        buf->sysjob = atoi(tok[1]);
    388388                        buf->status = strequal(tok[0],"HELD")?LPQ_PAUSED:LPQ_QUEUED;
    389389                        buf->priority = 0;
     
    421421                }
    422422
    423                 buf->job = atoi(tok[3]);
     423                buf->sysjob = atoi(tok[3]);
    424424                buf->status = strequal(tok[2],"RUNNING")?LPQ_PRINTING:LPQ_QUEUED;
    425425                buf->priority = 0;
     
    512512                /* fill things from header line */
    513513                buf->time = jobtime;
    514                 buf->job = jobid;
     514                buf->sysjob = jobid;
    515515                buf->status = jobstat;
    516516                buf->priority = jobprio;
     
    652652        }
    653653
    654         buf->job = atoi(tok[1]);
     654        buf->sysjob = atoi(tok[1]);
    655655        buf->size = atoi(tok[3]);
    656656        if (count > 7 && strequal(tok[7],"on")) {
     
    727727        }
    728728
    729         buf->job = atoi(tok[2]);
     729        buf->sysjob = atoi(tok[2]);
    730730        buf->size = atoi(tok[4]);
    731731        buf->status = strequal(tok[3],"active")?LPQ_PRINTING:LPQ_QUEUED;
     
    807807        }
    808808
    809         buf->job = atoi(tok[4]);
     809        buf->sysjob = atoi(tok[4]);
    810810
    811811        buf->size = atoi(tok[7]);
     
    897897        trim_char(parse_line->jobname, '\0', ' ');
    898898
    899         buf->job = atoi(parse_line->jobid);
     899        buf->sysjob = atoi(parse_line->jobid);
    900900        buf->priority = 0;
    901901        buf->size = atoi(parse_line->size);
     
    958958
    959959        /* Get the jobid */
    960         buf->job = atoi(parse_line->jobid);
     960        buf->sysjob = atoi(parse_line->jobid);
    961961
    962962        /* Get the job name */
     
    10241024                switch (toknum) {
    10251025                case 0:
    1026                         buf->job = atoi(tok);
     1026                        buf->sysjob = atoi(tok);
    10271027                        break;
    10281028                case 1:
     
    11531153}
    11541154
    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.