diff options
| author | Kevin Lo <kevlo@FreeBSD.org> | 2012-02-15 02:01:24 +0000 |
|---|---|---|
| committer | Kevin Lo <kevlo@FreeBSD.org> | 2012-02-15 02:01:24 +0000 |
| commit | 6e807fa6294e4cee2535855010fdf40407a41217 (patch) | |
| tree | b91e7a5b22cee1b5909b0b7950288ffa71255464 /usr.sbin/lpr | |
| parent | ecef54656dbdd5da3d96e1fb715fc766cd85c21b (diff) | |
Notes
Diffstat (limited to 'usr.sbin/lpr')
| -rw-r--r-- | usr.sbin/lpr/lpc/cmds.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.sbin/lpr/lpc/cmds.c b/usr.sbin/lpr/lpc/cmds.c index 287825f202cb..6118f47a287f 100644 --- a/usr.sbin/lpr/lpc/cmds.c +++ b/usr.sbin/lpr/lpc/cmds.c @@ -77,7 +77,7 @@ __FBSDID("$FreeBSD$"); static char *args2line(int argc, char **argv); static int doarg(char *_job); -static int doselect(struct dirent *_d); +static int doselect(const struct dirent *_d); static int kill_qtask(const char *lf); static int sortq(const void *_a, const void *_b); static int touch(struct jobqueue *_jq); @@ -376,7 +376,7 @@ upstat(struct printer *pp, const char *msg, int notifyuser) return; } (void) ftruncate(fd, 0); - if (msg == (char *)NULL) + if (msg == NULL) (void) write(fd, "\n", 1); else (void) write(fd, msg, strlen(msg)); @@ -451,7 +451,7 @@ static int cln_queuecnt; /* number of queues checked */ static int cln_testonly; /* remove-files vs just-print-info */ static int -doselect(struct dirent *d) +doselect(const struct dirent *d) { int c = d->d_name[0]; |
