X-Git-Url: http://git.tuebingen.mpg.de/?p=adu.git;a=blobdiff_plain;f=select.c;h=ded4a095ca751574bbfa9153d3ec61ad7aa32bb2;hp=152e4b98667c69fe68d5a0a53fb53b2f90b677ab;hb=8230b9164cf013b77bcb86028cba43b4d0b721fa;hpb=e14d98641f672c7b687b7259ce9dda130a60e3b4 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);