diff options
author | eadler <eadler@FreeBSD.org> | 2013-04-23 13:03:11 +0000 |
---|---|---|
committer | eadler <eadler@FreeBSD.org> | 2013-04-23 13:03:11 +0000 |
commit | 54ee0fda1cdb4a18beff0b1d6f2db0d63aa8f7b2 (patch) | |
tree | 260d5a31b7a3baf740d58b8209360d422d925bff | |
parent | 84dd0c66c9ce395a89bacd976f993209bf54934d (diff) | |
download | FreeBSD-src-54ee0fda1cdb4a18beff0b1d6f2db0d63aa8f7b2.zip FreeBSD-src-54ee0fda1cdb4a18beff0b1d6f2db0d63aa8f7b2.tar.gz |
- 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)
-rw-r--r-- | bin/cat/cat.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/bin/cat/cat.c b/bin/cat/cat.c index 9e12d3e..0daac7c 100644 --- a/bin/cat/cat.c +++ b/bin/cat/cat.c @@ -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 */ |