@@ -56,8 +56,7 @@ static int big_list_size = BIG_LIST;
56
56
57
57
/* List being tested */
58
58
typedef struct {
59
- struct list_head * l ;
60
- /* meta data of list */
59
+ struct list_head * l ; /**< meta data of list */
61
60
int size ;
62
61
} list_head_meta_t ;
63
62
@@ -572,9 +571,8 @@ static bool do_size(int argc, char *argv[])
572
571
}
573
572
574
573
if (argc == 2 ) {
575
- if (!get_int (argv [1 ], & reps )) {
574
+ if (!get_int (argv [1 ], & reps ))
576
575
report (1 , "Invalid number of calls to size '%s'" , argv [2 ]);
577
- }
578
576
}
579
577
580
578
int cnt = 0 ;
@@ -892,7 +890,7 @@ static void console_init()
892
890
}
893
891
894
892
/* Signal handlers */
895
- static void sigsegvhandler (int sig )
893
+ static void sigsegv_handler (int sig )
896
894
{
897
895
/* Avoid possible non-reentrant signal function be used in signal handler */
898
896
assert (write (1 ,
@@ -903,7 +901,7 @@ static void sigsegvhandler(int sig)
903
901
abort ();
904
902
}
905
903
906
- static void sigalrmhandler (int sig )
904
+ static void sigalrm_handler (int sig )
907
905
{
908
906
trigger_exception (
909
907
"Time limit exceeded. Either you are in an infinite loop, or your "
@@ -914,8 +912,8 @@ static void queue_init()
914
912
{
915
913
fail_count = 0 ;
916
914
l_meta .l = NULL ;
917
- signal (SIGSEGV , sigsegvhandler );
918
- signal (SIGALRM , sigalrmhandler );
915
+ signal (SIGSEGV , sigsegv_handler );
916
+ signal (SIGALRM , sigalrm_handler );
919
917
}
920
918
921
919
static bool queue_quit (int argc , char * argv [])
@@ -981,7 +979,6 @@ static bool sanity_check()
981
979
return true;
982
980
}
983
981
984
-
985
982
#define BUFSIZE 256
986
983
int main (int argc , char * argv [])
987
984
{
0 commit comments