summaryrefslogtreecommitdiffstats
path: root/usr.sbin/lpr
diff options
context:
space:
mode:
Diffstat (limited to 'usr.sbin/lpr')
-rw-r--r--usr.sbin/lpr/lpc/cmds.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.sbin/lpr/lpc/cmds.c b/usr.sbin/lpr/lpc/cmds.c
index 287825f..6118f47 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];
OpenPOWER on IntegriCloud