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 c09574e..c360366 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)