@@ -56,8 +56,7 @@ static int big_list_size = BIG_LIST;
5656
5757/* List being tested */
5858typedef struct {
59- struct list_head * l ;
60- /* meta data of list */
59+ struct list_head * l ; /**< meta data of list */
6160 int size ;
6261} list_head_meta_t ;
6362
@@ -572,9 +571,8 @@ static bool do_size(int argc, char *argv[])
572571 }
573572
574573 if (argc == 2 ) {
575- if (!get_int (argv [1 ], & reps )) {
574+ if (!get_int (argv [1 ], & reps ))
576575 report (1 , "Invalid number of calls to size '%s'" , argv [2 ]);
577- }
578576 }
579577
580578 int cnt = 0 ;
@@ -892,7 +890,7 @@ static void console_init()
892890}
893891
894892/* Signal handlers */
895- static void sigsegvhandler (int sig )
893+ static void sigsegv_handler (int sig )
896894{
897895 /* Avoid possible non-reentrant signal function be used in signal handler */
898896 assert (write (1 ,
@@ -903,7 +901,7 @@ static void sigsegvhandler(int sig)
903901 abort ();
904902}
905903
906- static void sigalrmhandler (int sig )
904+ static void sigalrm_handler (int sig )
907905{
908906 trigger_exception (
909907 "Time limit exceeded. Either you are in an infinite loop, or your "
@@ -914,8 +912,8 @@ static void queue_init()
914912{
915913 fail_count = 0 ;
916914 l_meta .l = NULL ;
917- signal (SIGSEGV , sigsegvhandler );
918- signal (SIGALRM , sigalrmhandler );
915+ signal (SIGSEGV , sigsegv_handler );
916+ signal (SIGALRM , sigalrm_handler );
919917}
920918
921919static bool queue_quit (int argc , char * argv [])
@@ -981,7 +979,6 @@ static bool sanity_check()
981979 return true;
982980}
983981
984-
985982#define BUFSIZE 256
986983int main (int argc , char * argv [])
987984{
0 commit comments