summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTobias Klauser <tklauser@distanz.ch>2013-05-17 13:38:52 +0200
committerTobias Klauser <tklauser@distanz.ch>2013-05-17 13:38:52 +0200
commit5a6557633729dd5f5799c4d944797c95c7fe981a (patch)
tree7933f765ad9f968ce86f6af0e5b27b360d77c1e5
parent2b0f29dfd02cd0d075a89d57b95764686e27e13b (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>
-rw-r--r--bpfc.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/bpfc.c b/bpfc.c
index 1b29bb3..cd88d66 100644
--- a/bpfc.c
+++ b/bpfc.c
@@ -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"