From 3f09dd0d824c3e35423d68e2fb1f14dbd0875dd2 Mon Sep 17 00:00:00 2001 From: Stefan Metzmacher Date: Fri, 30 Jan 2009 17:58:16 +0100 Subject: heimdal:roken: arg_printusage() should not try to return a value. This should fix problems with the IRIX build. metze --- source4/heimdal/lib/roken/getarg.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'source4/heimdal/lib/roken/getarg.c') diff --git a/source4/heimdal/lib/roken/getarg.c b/source4/heimdal/lib/roken/getarg.c index 3884fa83d6..7679d7f7f8 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 -- cgit From e592718c43d14ddb1f97be3a10d02b6a8deaa269 Mon Sep 17 00:00:00 2001 From: Stefan Metzmacher Date: Fri, 30 Jan 2009 18:02:21 +0100 Subject: heimdal:roken: arg_match_long() should return a value This should fix a build problem on IRIX. metze --- source4/heimdal/lib/roken/getarg.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'source4/heimdal/lib/roken/getarg.c') diff --git a/source4/heimdal/lib/roken/getarg.c b/source4/heimdal/lib/roken/getarg.c index 7679d7f7f8..3168ccc53d 100644 --- a/source4/heimdal/lib/roken/getarg.c +++ b/source4/heimdal/lib/roken/getarg.c @@ -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 -- cgit