From 8230b9164cf013b77bcb86028cba43b4d0b721fa Mon Sep 17 00:00:00 2001 From: Andre Noll Date: Sat, 8 Nov 2008 18:26:24 +0100 Subject: [PATCH] select.c: Fix two return values. ERRNO_TO_ERROR() takes a _positive_ error code. --- select.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/select.c b/select.c index 152e4b9..ded4a09 100644 --- a/select.c +++ b/select.c @@ -583,7 +583,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 open_pipe(char *path) @@ -734,7 +734,7 @@ static int setup_format_string(char *fmt, struct format_info **fi) break; default: ERROR_LOG("bad select mode\n"); - return -ERRNO_TO_ERROR(-EINVAL); + return -ERRNO_TO_ERROR(EINVAL); }; INFO_LOG("format string: %s\n", fmt); return parse_format_string(fmt, atoms, fi); -- 2.30.2