Add usage().

This commit is contained in:
Philippe Charnier 2000-03-26 15:04:35 +00:00
parent f57cdd0f01
commit 110ab594ad
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=58626

View File

@ -54,6 +54,7 @@ static int sflag;
static int found;
void search __P((void));
static void usage __P((void));
/*
* what
@ -71,9 +72,7 @@ main(argc, argv)
sflag = 1;
break;
default:
(void)fprintf(stderr,
"usage: what [-s] file ...\n");
exit(1);
usage();
}
argv += optind;
@ -90,6 +89,13 @@ main(argc, argv)
exit(!found);
}
static void
usage()
{
(void)fprintf(stderr, "usage: what [-s] file ...\n");
exit(1);
}
void
search()
{