summarylogtreecommitdiffstats
path: root/fixsignal.patch
blob: af420b428401eb4ae98cf9b580c0db79099a00dc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
diff -Naur asleap-2.2/asleap.c asleap-2.2-new/asleap.c
--- asleap-2.2/asleap.c	2026-02-07 01:04:02.462366593 -0500
+++ asleap-2.2-new/asleap.c	2026-02-07 01:05:07.327626277 -0500
@@ -72,7 +72,7 @@
 
 /* prototypes */
 void usage(char *message);
-void cleanup();
+void cleanup(int signal);
 void print_leapexch(struct asleap_data *asleap_ptr);
 void print_hashlast2(struct asleap_data *asleap_ptr);
 void print_leappw(struct asleap_data *asleap_ptr);
@@ -252,7 +252,7 @@
 
 }
 
-void cleanup()
+void cleanup(int signal)
 {
 
 	if (p != NULL) {
@@ -805,7 +805,7 @@
 		} else if (n == 1) {
 			if (asleap_ptr->verbose)
 				printf("Reached EOF on pcapfile.\n");
-			cleanup();	/* exits */
+			cleanup(-1);	/* exits */
 		}
 
 		if (packet == NULL) {
@@ -1590,7 +1590,7 @@
 	default:
 		fprintf(stderr, "Unsupported pcap datalink type: (%d) "
 			"\n", pcap_datalink(p));
-		cleanup();	/* Exits */
+		cleanup(-1);	/* Exits */
 	}
 
 /*