diff options
author | Tobias Klauser <tklauser@distanz.ch> | 2013-05-17 13:38:52 +0200 |
---|---|---|
committer | Tobias Klauser <tklauser@distanz.ch> | 2013-05-17 13:38:52 +0200 |
commit | 5a6557633729dd5f5799c4d944797c95c7fe981a (patch) | |
tree | 7933f765ad9f968ce86f6af0e5b27b360d77c1e5 /bpfc.c | |
parent | 2b0f29dfd02cd0d075a89d57b95764686e27e13b (diff) |
bpfc: Add __noreturn attribute to exiting functions
Add the __noreturn attribute to all functions which wont return
but call die() themselves to exit().
Signed-off-by: Tobias Klauser <tklauser@distanz.ch>
Diffstat (limited to 'bpfc.c')
-rw-r--r-- | bpfc.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -31,7 +31,7 @@ static const struct option long_options[] = { extern int compile_filter(char *file, int verbose, int bypass, int format); -static void help(void) +static void __noreturn help(void) { printf("\nbpfc %s, a tiny BPF compiler\n", VERSION_STRING); puts("http://www.netsniff-ng.org\n\n" @@ -60,7 +60,7 @@ static void help(void) die(); } -static void version(void) +static void __noreturn version(void) { printf("\nbpfc %s, a tiny BPF compiler\n", VERSION_STRING); puts("http://www.netsniff-ng.org\n\n" |