Diff for /src/usr.sbin/lpr/common_source/common.c between versions 1.2 and 1.3

version 1.2, 2003/06/17 04:29:55 version 1.3, 2004/03/22 22:32:50
Line 37 Line 37
  *   *
  * @(#)common.c 8.5 (Berkeley) 4/28/95   * @(#)common.c 8.5 (Berkeley) 4/28/95
  * $FreeBSD: src/usr.sbin/lpr/common_source/common.c,v 1.12.2.17 2002/07/14 23:58:52 gad Exp $   * $FreeBSD: src/usr.sbin/lpr/common_source/common.c,v 1.12.2.17 2002/07/14 23:58:52 gad Exp $
 * $DragonFly: src/usr.sbin/lpr/common_source/common.c,v 1.1 2003/06/16 07:24:45 dillon Exp $ * $DragonFly$
  */   */
   
 #include <sys/param.h>  #include <sys/param.h>
Line 75  static int compar(const void *_p1, const Line 75  static int compar(const void *_p1, const
 int  int
 getline(FILE *cfp)  getline(FILE *cfp)
 {  {
        register int linel = 0;        int linel = 0;
        register char *lp = line;        char *lp = line;
        register int c;        int c;
   
         while ((c = getc(cfp)) != '\n' && (size_t)(linel+1) < sizeof(line)) {          while ((c = getc(cfp)) != '\n' && (size_t)(linel+1) < sizeof(line)) {
                 if (c == EOF)                  if (c == EOF)
Line 105  getline(FILE *cfp) Line 105  getline(FILE *cfp)
 int  int
 getq(const struct printer *pp, struct jobqueue *(*namelist[]))  getq(const struct printer *pp, struct jobqueue *(*namelist[]))
 {  {
        register struct dirent *d;        struct dirent *d;
        register struct jobqueue *q, **queue;        struct jobqueue *q, **queue;
         size_t arraysz, entrysz, nitems;          size_t arraysz, entrysz, nitems;
         struct stat stbuf;          struct stat stbuf;
         DIR *dirp;          DIR *dirp;
Line 461  lpd_gettime(struct timespec *tsp, char * Line 461  lpd_gettime(struct timespec *tsp, char *
 void  void
 trstat_init(struct printer *pp, const char *fname, int filenum)  trstat_init(struct printer *pp, const char *fname, int filenum)
 {  {
        register const char *srcp;        const char *srcp;
        register char *destp, *endp;        char *destp, *endp;
   
         /*          /*
          * Figure out the job id of this file.  The filename should be           * Figure out the job id of this file.  The filename should be

Removed from v.1.2  
changed lines
  Added in v.1.3