summaryrefslogtreecommitdiff
path: root/source4/heimdal/lib/roken
diff options
context:
space:
mode:
Diffstat (limited to 'source4/heimdal/lib/roken')
-rw-r--r--source4/heimdal/lib/roken/getarg.c7
-rw-r--r--source4/heimdal/lib/roken/vis.hin2
2 files changed, 7 insertions, 2 deletions
diff --git a/source4/heimdal/lib/roken/getarg.c b/source4/heimdal/lib/roken/getarg.c
index 3884fa83d6..3168ccc53d 100644
--- a/source4/heimdal/lib/roken/getarg.c
+++ b/source4/heimdal/lib/roken/getarg.c
@@ -216,8 +216,8 @@ arg_printusage (struct getargs *args,
const char *progname,
const char *extra_string)
{
- return arg_printusage_i18n(args, num_args, "Usage",
- progname, extra_string, builtin_i18n);
+ arg_printusage_i18n(args, num_args, "Usage",
+ progname, extra_string, builtin_i18n);
}
void ROKEN_LIB_FUNCTION
@@ -478,6 +478,9 @@ arg_match_long(struct getargs *args, size_t num_args,
default:
abort ();
}
+
+ /* not reached */
+ return ARG_ERR_NO_MATCH;
}
static int
diff --git a/source4/heimdal/lib/roken/vis.hin b/source4/heimdal/lib/roken/vis.hin
index 64274526e4..06a250c6d8 100644
--- a/source4/heimdal/lib/roken/vis.hin
+++ b/source4/heimdal/lib/roken/vis.hin
@@ -80,7 +80,9 @@
*/
#define UNVIS_END 1 /* no more characters */
+#ifdef HAVE_SYS_CDEFS_H
#include <sys/cdefs.h>
+#endif
__BEGIN_DECLS
char * ROKEN_LIB_FUNCTION