Diff for /src/usr.sbin/lpr/lpc/cmds.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 34 Line 34
  * @(#) Copyright (c) 1983, 1993 The Regents of the University of California.  All rights reserved.   * @(#) Copyright (c) 1983, 1993 The Regents of the University of California.  All rights reserved.
  * @(#)cmds.c   8.2 (Berkeley) 4/28/95   * @(#)cmds.c   8.2 (Berkeley) 4/28/95
  * $FreeBSD: src/usr.sbin/lpr/lpc/cmds.c,v 1.14.2.16 2002/07/25 23:29:39 gad Exp $   * $FreeBSD: src/usr.sbin/lpr/lpc/cmds.c,v 1.14.2.16 2002/07/25 23:29:39 gad Exp $
  * $DragonFly: src/usr.sbin/lpr/lpc/cmds.c,v 1.1 2003/06/16 07:25:12 dillon Exp $   * $DragonFly$
  */   */
   
 /*  /*
Line 99  static void (*generic_wrapup)(int _last_ Line 99  static void (*generic_wrapup)(int _last_
   
 void  void
 generic(void (*specificrtn)(struct printer *_pp), int cmdopts,  generic(void (*specificrtn)(struct printer *_pp), int cmdopts,
     void (*initrtn)(int _argc, char *_argv[]), int argc, char *argv[])      void (*initrtn)(int _argc, char **_argv), int argc, char **argv)
 {  {
         int cmdstatus, more, targc;          int cmdstatus, more, targc;
         struct printer myprinter, *pp;          struct printer myprinter, *pp;
Line 601  have_res: Line 601  have_res:
  */   */
   
 void  void
 clean_gi(int argc, char *argv[])  clean_gi(int argc, char **argv)
 {  {
   
         /* init some fields before 'clean' is called for each queue */          /* init some fields before 'clean' is called for each queue */
Line 632  clean_gi(int argc, char *argv[]) Line 632  clean_gi(int argc, char *argv[])
 }  }
   
 void  void
 tclean_gi(int argc, char *argv[])  tclean_gi(int argc, char **argv)
 {  {
   
         /* only difference between 'clean' and 'tclean' is one value */          /* only difference between 'clean' and 'tclean' is one value */
Line 895  disable_q(struct printer *pp) Line 895  disable_q(struct printer *pp)
  * `-msg' was around).   * `-msg' was around).
  */   */
 void  void
 down_gi(int argc, char *argv[])  down_gi(int argc, char **argv)
 {  {
   
         /* If `-msg' was specified, then this routine has nothing to do. */          /* If `-msg' was specified, then this routine has nothing to do. */
Line 942  down_q(struct printer *pp) Line 942  down_q(struct printer *pp)
  * Exit lpc   * Exit lpc
  */   */
 void  void
 quit(int argc __unused, char *argv[] __unused)  quit(int argc __unused, char **argv __unused)
 {  {
         exit(0);          exit(0);
 }  }
Line 983  restart_q(struct printer *pp) Line 983  restart_q(struct printer *pp)
  * parameter to indicate the end of the queue list and start of msg text.   * parameter to indicate the end of the queue list and start of msg text.
  */   */
 void  void
 setstatus_gi(int argc __unused, char *argv[] __unused)  setstatus_gi(int argc __unused, char **argv __unused)
 {  {
   
         if (generic_msg == NULL) {          if (generic_msg == NULL) {
Line 1034  void Line 1034  void
 status(struct printer *pp)  status(struct printer *pp)
 {  {
         struct stat stbuf;          struct stat stbuf;
         register int fd, i;          int fd, i;
         register struct dirent *dp;          struct dirent *dp;
         DIR *dirp;          DIR *dirp;
         char file[MAXPATHLEN];          char file[MAXPATHLEN];
   
Line 1116  time_t mtime; Line 1116  time_t mtime;
  * Put the specified jobs at the top of printer queue.   * Put the specified jobs at the top of printer queue.
  */   */
 void  void
 topq(int argc, char *argv[])  topq(int argc, char **argv)
 {  {
         register int i;          int i;
         struct stat stbuf;          struct stat stbuf;
         int cmdstatus, changed;          int cmdstatus, changed;
         struct printer myprinter, *pp = &myprinter;          struct printer myprinter, *pp = &myprinter;
Line 1208  touch(struct jobqueue *jq) Line 1208  touch(struct jobqueue *jq)
 static int  static int
 doarg(char *job)  doarg(char *job)
 {  {
         register struct jobqueue **qq;          struct jobqueue **qq;
         register int jobnum, n;          int jobnum, n;
         register char *cp, *machine;          char *cp, *machine;
         int cnt = 0;          int cnt = 0;
         FILE *fp;          FILE *fp;
   

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