Deleted Added
full compact
lpq.c (78300) lpq.c (79739)
1/*
2 * Copyright (c) 1983, 1993
3 * The Regents of the University of California. All rights reserved.
4 *
5 *
6 * Redistribution and use in source and binary forms, with or without
7 * modification, are permitted provided that the following conditions
8 * are met:

--- 29 unchanged lines hidden (view full) ---

38 The Regents of the University of California. All rights reserved.\n";
39#endif /* not lint */
40
41#ifndef lint
42/*
43static char sccsid[] = "@(#)lpq.c 8.3 (Berkeley) 5/10/95";
44*/
45static const char rcsid[] =
1/*
2 * Copyright (c) 1983, 1993
3 * The Regents of the University of California. All rights reserved.
4 *
5 *
6 * Redistribution and use in source and binary forms, with or without
7 * modification, are permitted provided that the following conditions
8 * are met:

--- 29 unchanged lines hidden (view full) ---

38 The Regents of the University of California. All rights reserved.\n";
39#endif /* not lint */
40
41#ifndef lint
42/*
43static char sccsid[] = "@(#)lpq.c 8.3 (Berkeley) 5/10/95";
44*/
45static const char rcsid[] =
46 "$FreeBSD: head/usr.sbin/lpr/lpq/lpq.c 78300 2001-06-15 22:03:07Z gad $";
46 "$FreeBSD: head/usr.sbin/lpr/lpq/lpq.c 79739 2001-07-15 00:09:46Z gad $";
47#endif /* not lint */
48
49/*
50 * Spool Queue examination program
51 *
52 * lpq [-a] [-l] [-Pprinter] [user...] [job...]
53 *
54 * -a show all non-null queues on the local machine

--- 92 unchanged lines hidden (view full) ---

147 switch (status) {
148 case PCAPERR_TCOPEN:
149 printf("warning: %s: unresolved "
150 "tc= reference(s) ",
151 pp->printer);
152 case PCAPERR_SUCCESS:
153 break;
154 default:
47#endif /* not lint */
48
49/*
50 * Spool Queue examination program
51 *
52 * lpq [-a] [-l] [-Pprinter] [user...] [job...]
53 *
54 * -a show all non-null queues on the local machine

--- 92 unchanged lines hidden (view full) ---

147 switch (status) {
148 case PCAPERR_TCOPEN:
149 printf("warning: %s: unresolved "
150 "tc= reference(s) ",
151 pp->printer);
152 case PCAPERR_SUCCESS:
153 break;
154 default:
155 fatal(pp, pcaperr(status));
155 fatal(pp, "%s", pcaperr(status));
156 }
157 } while (more && status);
158 }
159 } else {
160 int status;
161
162 init_printer(pp);
163 status = getprintcap(printer, pp);
164 if (status < 0)
156 }
157 } while (more && status);
158 }
159 } else {
160 int status;
161
162 init_printer(pp);
163 status = getprintcap(printer, pp);
164 if (status < 0)
165 fatal(pp, pcaperr(status));
165 fatal(pp, "%s", pcaperr(status));
166
167 displayq(pp, lflag);
168 }
169 exit(0);
170}
171
172static int
173ckqueue(const struct printer *pp)

--- 25 unchanged lines hidden ---
166
167 displayq(pp, lflag);
168 }
169 exit(0);
170}
171
172static int
173ckqueue(const struct printer *pp)

--- 25 unchanged lines hidden ---