summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeter S. Mazinger <ps.m@gmx.net>2011-03-24 01:32:14 +0100
committerBernhard Reutner-Fischer <rep.dot.nop@gmail.com>2012-06-15 14:00:32 +0200
commit07de755cffd6966a3a400a926c24e50233aae517 (patch)
treeff2b9327841076e7f9c7fd78a8d494a68132e88b
parentd46dc8bc88e38251bfa3712efe7abf62933f5419 (diff)
getconf.c: fix noreturn warnings
Signed-off-by: Peter S. Mazinger <ps.m@gmx.net> Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
-rw-r--r--utils/getconf.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/utils/getconf.c b/utils/getconf.c
index 0b2a5aa28..4c058a080 100644
--- a/utils/getconf.c
+++ b/utils/getconf.c
@@ -16,6 +16,7 @@
Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */
#define _GNU_SOURCE 1
+#include "porting.h"
#include <unistd.h>
#include <errno.h>
#include <string.h>
@@ -1058,7 +1059,7 @@ extern const char *__progname;
#define __progname "foo"
#endif
-static void
+static attribute_noreturn void
usage (void)
{
fprintf (stderr,
@@ -1070,7 +1071,7 @@ usage (void)
}
-static void
+static attribute_noreturn void
print_all (const char *path)
{
register const struct conf *c;