- Remove some unnecessary cast when assigning NULL to a handle.
- Silent a warning
This commit is contained in:
parent
dce65ce6be
commit
09bba37b34
@ -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];
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user