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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
|
Fix for strict prototypes error: declarations are fine,
definitions are missing void
https://bugs.gentoo.org/949835
--- a/netatop.c 2024-06-01 15:19:08.000000000 +0400
+++ b/netatop.c 2025-02-16 15:48:07.094848633 +0400
@@ -1053,7 +1053,7 @@
** can be found at the head
*/
static void
-gctaskexit()
+gctaskexit(void)
{
unsigned long flags;
struct taskinfo *tip;
@@ -1087,7 +1087,7 @@
** cleanup sockinfo structures that are connected to finished processes
*/
static void
-gcsockinfo()
+gcsockinfo(void)
{
int i;
struct sockinfo *sip, *sipsave;
@@ -1300,7 +1300,7 @@
** remove taskinfo structures of finished tasks from hash list
*/
static void
-gctaskinfo()
+gctaskinfo(void)
{
int i;
struct taskinfo *tip, *tipsave;
@@ -1376,7 +1376,7 @@
** remove all sockinfo structs
*/
static void
-wipesockinfo()
+wipesockinfo(void)
{
struct sockinfo *sip, *sipsave;
int i;
@@ -1404,7 +1404,7 @@
** remove all taskinfo structs from hash list
*/
static void
-wipetaskinfo()
+wipetaskinfo(void)
{
struct taskinfo *tip, *tipsave;
int i;
@@ -1432,7 +1432,7 @@
** remove all taskinfo structs from exit list
*/
static void
-wipetaskexit()
+wipetaskexit(void)
{
gctaskexit();
}
@@ -1768,7 +1768,7 @@
** called when module loaded
*/
int
-init_module()
+init_module(void)
{
int i;
@@ -1869,7 +1869,7 @@
** called when module unloaded
*/
void
-cleanup_module()
+cleanup_module(void)
{
/*
** tell kernel daemon to stop
|