Fix missing sign conversion in ignore_error_type()
authorJens Axboe <axboe@fb.com>
Mon, 14 Apr 2014 14:59:17 +0000 (08:59 -0600)
committerJens Axboe <axboe@fb.com>
Mon, 14 Apr 2014 14:59:17 +0000 (08:59 -0600)
Signed-off-by: Jens Axboe <axboe@fb.com>
options.c

index 9096a322bbc089db652662f8a1b04defd3f228b3..50af7b499f4b37bfcda231dcfef0aaebf9e8d7f8 100644 (file)
--- a/options.c
+++ b/options.c
@@ -269,7 +269,7 @@ static int ignore_error_type(struct thread_data *td, int etype, char *str)
                } else {
                        error[i] = atoi(fname);
                        if (error[i] < 0)
-                               error[i] = error[i];
+                               error[i] = -error[i];
                }
                if (!error[i]) {
                        log_err("Unknown error %s, please use number value \n",