X-Git-Url: https://git.wpitchoune.net/gitweb/?p=psensor.git;a=blobdiff_plain;f=tests%2Ftest_psensor_type_to_unit_str.c;h=6be91d564cee92d8548784dceb43ba7c1c9d34ff;hp=3ce27f8bb4a244396910ed5ce82972792512ffc3;hb=c1e20f2631a1249720e9c75d753eacfcb0f6c7b9;hpb=270064a76eaf2cc21f8cf9f29d8148a64b1f8964 diff --git a/tests/test_psensor_type_to_unit_str.c b/tests/test_psensor_type_to_unit_str.c index 3ce27f8..6be91d5 100644 --- a/tests/test_psensor_type_to_unit_str.c +++ b/tests/test_psensor_type_to_unit_str.c @@ -42,7 +42,7 @@ test_fct(unsigned int type, int use_celsius, const char *ref) return 1; } -static int test() { +static int test(void) { int failures; failures = 0; @@ -75,7 +75,7 @@ int main(int argc, char **argv) failures = test(); - if (failures) + if (failures) exit(EXIT_FAILURE); else exit(EXIT_SUCCESS);