From: Andre Noll Date: Sat, 8 Nov 2008 17:26:24 +0000 (+0100) Subject: select.c: Fix two return values. X-Git-Tag: v0.0.5~1^2~24 X-Git-Url: http://git.tuebingen.mpg.de/?p=adu.git;a=commitdiff_plain;h=8230b9164cf013b77bcb86028cba43b4d0b721fa;ds=sidebyside select.c: Fix two return values. ERRNO_TO_ERROR() takes a _positive_ error code. --- 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);