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

version 1.2, 2003/06/17 04:29:56 version 1.3, 2004/03/22 22:32:50
Line 32 Line 32
  *   *
  * @(#)displayq.c       8.4 (Berkeley) 4/28/95   * @(#)displayq.c       8.4 (Berkeley) 4/28/95
  * $FreeBSD: src/usr.sbin/lpr/common_source/displayq.c,v 1.15.2.8 2001/08/30 09:27:41 kris Exp $   * $FreeBSD: src/usr.sbin/lpr/common_source/displayq.c,v 1.15.2.8 2001/08/30 09:27:41 kris Exp $
 * $DragonFly: src/usr.sbin/lpr/common_source/displayq.c,v 1.1 2003/06/16 07:24:48 dillon Exp $ * $DragonFly$
  */   */
   
 #include <sys/param.h>  #include <sys/param.h>
Line 89  static void warn(const struct printer *_ Line 89  static void warn(const struct printer *_
 void  void
 displayq(struct printer *pp, int format)  displayq(struct printer *pp, int format)
 {  {
        register struct jobqueue *q;        struct jobqueue *q;
        register int i, nitems, fd, ret;        int i, nitems, fd, ret;
         char *cp, *endp;          char *cp, *endp;
         struct jobqueue **queue;          struct jobqueue **queue;
         struct stat statb;          struct stat statb;
Line 281  header(void) Line 281  header(void)
 void  void
 inform(const struct printer *pp, char *cf)  inform(const struct printer *pp, char *cf)
 {  {
        register int copycnt;        int copycnt;
        char     savedname[MAXPATHLEN+1];        char savedname[MAXPATHLEN+1];
        FILE    *cfp;        FILE *cfp;
   
         /*          /*
          * There's a chance the control file has gone away           * There's a chance the control file has gone away
Line 378  inform(const struct printer *pp, char *c Line 378  inform(const struct printer *pp, char *c
 int  int
 inlist(char *uname, char *cfile)  inlist(char *uname, char *cfile)
 {  {
        register int *r, n;        int *r, n;
        register char **u, *cp;        char **u, *cp;
   
         if (users == 0 && requests == 0)          if (users == 0 && requests == 0)
                 return(1);                  return(1);

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