diff options
author | Alfonso Gregory <gfunni234@gmail.com> | 2023-07-07 16:39:23 +0000 |
---|---|---|
committer | Warner Losh <imp@FreeBSD.org> | 2023-07-07 16:45:18 +0000 |
commit | a1b6427a97879ee0034797b2c75ecd107312456a (patch) | |
tree | b558f85b9151da46b5c3a9b3d4b62a0d8d3e0773 /usr.bin/find | |
parent | 498a0a9c61c3048b492937ff76d58bbd0b78031a (diff) | |
download | src-a1b6427a97879ee0034797b2c75ecd107312456a.tar.gz src-a1b6427a97879ee0034797b2c75ecd107312456a.zip |
Mark usage function as __dead2 in programs where it does not return
In most cases, usage does not return, so mark them as __dead2. For the
cases where they do return, they have not been marked __dead2.
Reviewed by: imp
Pull Request: https://github.com/freebsd/freebsd-src/pull/735
Diffstat (limited to 'usr.bin/find')
-rw-r--r-- | usr.bin/find/main.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/usr.bin/find/main.c b/usr.bin/find/main.c index 45a95a454d94..6090f71d6e7c 100644 --- a/usr.bin/find/main.c +++ b/usr.bin/find/main.c @@ -71,7 +71,7 @@ int mindepth = -1, maxdepth = -1; /* minimum and maximum depth */ int regexp_flags = REG_BASIC; /* use the "basic" regexp by default*/ int exitstatus; -static void usage(void); +static void usage(void) __dead2; int main(int argc, char *argv[]) |