X-Git-Url: https://git.kernel.dk/?p=fio.git;a=blobdiff_plain;f=td_error.c;h=9d58a31471d03f3f7db70fb6660432750f5c882c;hp=903f9ea5163e95854043b942889d10f6185aa198;hb=01fe773df4bc4a35450ce3ef50c8075b3bf55cd0;hpb=3c978125e2bc883a9e69f0bae0122f936f995f17 diff --git a/td_error.c b/td_error.c index 903f9ea5..9d58a314 100644 --- a/td_error.c +++ b/td_error.c @@ -20,8 +20,7 @@ int td_non_fatal_error(struct thread_data *td, enum error_type_bit etype, if (!td->o.ignore_error[etype]) { td->o.ignore_error[etype] = __NON_FATAL_ERR; - td->o.ignore_error_nr[etype] = sizeof(__NON_FATAL_ERR) - / sizeof(int); + td->o.ignore_error_nr[etype] = ARRAY_SIZE(__NON_FATAL_ERR); } if (!(td->o.continue_on_error & (1 << etype)))