]> git.ipfire.org Git - thirdparty/mtr.git/commitdiff
warnings: correct function pointer prototype argument
authorSami Kerola <kerolasa@iki.fi>
Mon, 29 Aug 2016 09:41:28 +0000 (10:41 +0100)
committerSami Kerola <kerolasa@iki.fi>
Mon, 29 Aug 2016 09:42:51 +0000 (10:42 +0100)
In struct fields the function pointer is getting assignments of functions
that take one int as input argument.

net.h

diff --git a/net.h b/net.h
index 66040f2578503de94eb375e0b945b034a1314e80..59712a2c26f566c9094302a9fa9532fae53babe6 100644 (file)
--- a/net.h
+++ b/net.h
@@ -108,7 +108,7 @@ struct fields {
   CONST char *title;
   CONST char *format;
   int length;
-  int (*net_xxx)();
+  int (*net_xxx)(int);
 };
 
 extern struct fields data_fields[MAXFLD];