Deleted Added
full compact
lprm.c (27618) lprm.c (29780)
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:

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

28 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
29 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
30 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
31 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
32 * SUCH DAMAGE.
33 */
34
35#ifndef lint
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:

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

28 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
29 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
30 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
31 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
32 * SUCH DAMAGE.
33 */
34
35#ifndef lint
36static char copyright[] =
36static const char copyright[] =
37"@(#) Copyright (c) 1983, 1993\n\
38 The Regents of the University of California. All rights reserved.\n";
39#endif /* not lint */
40
41#ifndef lint
37"@(#) Copyright (c) 1983, 1993\n\
38 The Regents of the University of California. All rights reserved.\n";
39#endif /* not lint */
40
41#ifndef lint
42#if 0
42static char sccsid[] = "@(#)lprm.c 8.1 (Berkeley) 6/6/93";
43static char sccsid[] = "@(#)lprm.c 8.1 (Berkeley) 6/6/93";
44#endif
45static const char rcsid[] =
46 "$Id$";
43#endif /* not lint */
44
45/*
46 * lprm - remove the current user's spool entry
47 *
48 * lprm [-] [[job #] [user] ...]
49 *
50 * Using information in the lock file, lprm will kill the

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

73int requ[MAXREQUESTS]; /* job number of spool entries */
74int requests; /* # of spool requests */
75char *user[MAXUSERS]; /* users to process */
76int users; /* # of users in user array */
77uid_t uid, euid; /* real and effective user id's */
78
79static char luser[16]; /* buffer for person */
80
47#endif /* not lint */
48
49/*
50 * lprm - remove the current user's spool entry
51 *
52 * lprm [-] [[job #] [user] ...]
53 *
54 * Using information in the lock file, lprm will kill the

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

77int requ[MAXREQUESTS]; /* job number of spool entries */
78int requests; /* # of spool requests */
79char *user[MAXUSERS]; /* users to process */
80int users; /* # of users in user array */
81uid_t uid, euid; /* real and effective user id's */
82
83static char luser[16]; /* buffer for person */
84
81void usage __P((void));
85static void usage __P((void));
82
83int
84main(argc, argv)
85 int argc;
86 char *argv[];
87{
88 register char *arg;
89 struct passwd *p;

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

135 }
136 if (printer == NULL && (printer = getenv("PRINTER")) == NULL)
137 printer = DEFLP;
138
139 rmjob();
140 exit(0);
141}
142
86
87int
88main(argc, argv)
89 int argc;
90 char *argv[];
91{
92 register char *arg;
93 struct passwd *p;

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

139 }
140 if (printer == NULL && (printer = getenv("PRINTER")) == NULL)
141 printer = DEFLP;
142
143 rmjob();
144 exit(0);
145}
146
143void
147static void
144usage()
145{
146 fprintf(stderr, "usage: lprm [-] [-Pprinter] [[job #] [user] ...]\n");
147 exit(2);
148}
148usage()
149{
150 fprintf(stderr, "usage: lprm [-] [-Pprinter] [[job #] [user] ...]\n");
151 exit(2);
152}