]> git.tue.mpg.de Git - adu.git/commitdiff
print_statistics(): Fix return value.
authorAndre Noll <maan@systemlinux.org>
Sat, 1 Nov 2008 21:42:33 +0000 (22:42 +0100)
committerAndre Noll <maan@systemlinux.org>
Sat, 1 Nov 2008 21:42:33 +0000 (22:42 +0100)
gengeopt should protect us from ever executing this code path,
but anyway.

select.c

index c09574efb198fe3971cefaaee1daa4b78ccfbea0..c36036645428344b702d9b2e3617049b8b168fb7 100644 (file)
--- a/select.c
+++ b/select.c
@@ -578,7 +578,7 @@ static int print_statistics(struct format_info *fi)
                        return print_user_summary(fi);
        };
        ERROR_LOG("bad select mode\n");
-       return ERRNO_TO_ERROR(-EINVAL);
+       return -ERRNO_TO_ERROR(-EINVAL);
 }
 
 static int read_uid_file(struct uid_range *admissible_uids)