=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/time/time.c,v retrieving revision 1.22 retrieving revision 1.23 diff -u -r1.22 -r1.23 --- src/usr.bin/time/time.c 2017/07/13 06:39:54 1.22 +++ src/usr.bin/time/time.c 2017/07/22 16:20:10 1.23 @@ -1,4 +1,4 @@ -/* $OpenBSD: time.c,v 1.22 2017/07/13 06:39:54 tedu Exp $ */ +/* $OpenBSD: time.c,v 1.23 2017/07/22 16:20:10 schwarze Exp $ */ /* $NetBSD: time.c,v 1.7 1995/06/27 00:34:00 jtc Exp $ */ /* @@ -93,8 +93,8 @@ } /* parent */ - (void)signal(SIGINT, SIG_IGN); - (void)signal(SIGQUIT, SIG_IGN); + signal(SIGINT, SIG_IGN); + signal(SIGQUIT, SIG_IGN); while (wait3(&status, 0, &ru) != pid) ; clock_gettime(CLOCK_MONOTONIC, &after); @@ -180,9 +180,7 @@ __dead void usage(void) { - extern char *__progname; - - (void)fprintf(stderr, "usage: %s [-lp] utility [argument ...]\n", - __progname); + fprintf(stderr, "usage: %s [-lp] utility [argument ...]\n", + getprogname()); exit(1); }