summaryrefslogtreecommitdiffstats
path: root/usr.sbin/lpr
diff options
context:
space:
mode:
authorkevlo <kevlo@FreeBSD.org>2012-02-15 02:01:24 +0000
committerkevlo <kevlo@FreeBSD.org>2012-02-15 02:01:24 +0000
commit09bba37b34a115e616e690de3923dc08dc8b9e9e (patch)
treeb91e7a5b22cee1b5909b0b7950288ffa71255464 /usr.sbin/lpr
parentdce65ce6be9088b0a0444b5f603e5f110a76e249 (diff)
downloadFreeBSD-src-09bba37b34a115e616e690de3923dc08dc8b9e9e.zip
FreeBSD-src-09bba37b34a115e616e690de3923dc08dc8b9e9e.tar.gz
- Remove some unnecessary cast when assigning NULL to a handle.
- Silent a warning
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