While here remove one useless call to usage() that's covered by the
very next line.
-/* $OpenBSD: ping.c,v 1.139 2016/03/03 18:30:48 florian Exp $ */
+/* $OpenBSD: ping.c,v 1.140 2016/08/30 12:10:10 florian Exp $ */
/* $NetBSD: ping.c,v 1.20 1995/08/11 22:37:58 cgd Exp $ */
/*
#ifndef SMALL
int map_tos(char *, int *);
#endif /* SMALL */
-void usage(void);
+__dead void usage(void);
int
main(int argc, char *argv[])
}
#endif /* SMALL */
-void
+__dead void
usage(void)
{
(void)fprintf(stderr,
-/* $OpenBSD: ping6.c,v 1.147 2016/08/30 11:15:16 florian Exp $ */
+/* $OpenBSD: ping6.c,v 1.148 2016/08/30 12:10:10 florian Exp $ */
/* $KAME: ping6.c,v 1.163 2002/10/25 02:19:06 itojun Exp $ */
/*
void pr_rthdr(void *);
void pr_retip(struct ip6_hdr *, u_char *);
void summary(int);
-void usage(void);
+__dead void usage(void);
int
main(int argc, char *argv[])
break;
default:
usage();
- /*NOTREACHED*/
}
}
argc -= optind;
argv += optind;
- if (argc < 1) {
- usage();
- /*NOTREACHED*/
- }
-
if (argc != 1)
usage();
}
}
-void
+__dead void
usage(void)
{
(void)fprintf(stderr,