diff options
author | Philip Guenthe <guenther@cvs.openbsd.org> | 2012-11-29 02:15:45 +0000 |
---|---|---|
committer | Philip Guenthe <guenther@cvs.openbsd.org> | 2012-11-29 02:15:45 +0000 |
commit | 1e87be8757cbe08120f7c18840ffee4fb5ab557d (patch) | |
tree | a984d28d5f20f0b7adc6856d8dd43ecb96f18f7c /usr.sbin/lpr/lpc | |
parent | 36563650e8f70470f880cd5c1a85e86cc4b105b5 (diff) |
Change scandir()'s 'select' argument from
int (*)(struct dirent *)
to
int (*)(const struct dirent *)
to match POSIX.
ok millert@, ports check by naddy@
Diffstat (limited to 'usr.sbin/lpr/lpc')
-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 c9a444b59ae..7fe784578c9 100644 --- a/usr.sbin/lpr/lpc/cmds.c +++ b/usr.sbin/lpr/lpc/cmds.c @@ -1,4 +1,4 @@ -/* $OpenBSD: cmds.c,v 1.23 2012/03/22 01:44:19 guenther Exp $ */ +/* $OpenBSD: cmds.c,v 1.24 2012/11/29 02:15:44 guenther Exp $ */ /* $NetBSD: cmds.c,v 1.12 1997/10/05 15:12:06 mrg Exp $ */ /* @@ -59,7 +59,7 @@ static void abortpr(int); static void cleanpr(void); static void disablepr(void); static int doarg(char *); -static int doselect(struct dirent *); +static int doselect(const struct dirent *); static void enablepr(void); static void prstat(void); static void putmsg(int, char **); @@ -251,7 +251,7 @@ clean(int argc, char **argv) } static int -doselect(struct dirent *d) +doselect(const struct dirent *d) { int c = d->d_name[0]; |