- Add the __dead2 attribute since it is a function that never returns

- Add an empty line in usage() according to style(9)

PR:		bin/177076
Submitted by:	Fernando <fernando.apesteguia@gmail.com>
Approved by:	cperciva (mentor)
This commit is contained in:
Eitan Adler 2013-04-23 13:03:11 +00:00
parent af44d850f2
commit e99f8bc02e
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=249804

View File

@ -68,7 +68,7 @@ static int bflag, eflag, lflag, nflag, sflag, tflag, vflag;
static int rval;
static const char *filename;
static void usage(void);
static void usage(void) __dead2;
static void scanfiles(char *argv[], int cooked);
static void cook_cat(FILE *);
static void raw_cat(int);
@ -153,6 +153,7 @@ main(int argc, char *argv[])
static void
usage(void)
{
fprintf(stderr, "usage: cat [-belnstuv] [file ...]\n");
exit(1);
/* NOTREACHED */