]> The Tcpdump Group git mirrors - libpcap/commitdiff
Don't use old-style function definitions.
authorGuy Harris <[email protected]>
Tue, 20 Mar 2018 18:46:28 +0000 (11:46 -0700)
committerGuy Harris <[email protected]>
Tue, 20 Mar 2018 18:46:28 +0000 (11:46 -0700)
scanner.l

index bec9f461122775cc05440f3b6b2d9fd3ddbab5e6..a82bb61c309568415ac33570051886a3fb5787fd 100644 (file)
--- a/scanner.l
+++ b/scanner.l
@@ -484,8 +484,7 @@ tcp-cwr                     { yylval->i = 0x80; return NUM; }
 
 /* Hex digit to integer. */
 static inline int
-xdtoi(c)
-       register int c;
+xdtoi(int c)
 {
        if (isdigit(c))
                return c - '0';
@@ -500,8 +499,7 @@ xdtoi(c)
  * preceding 0x or 0 and uses hex or octal instead of decimal.
  */
 static int
-stoi(s)
-       char *s;
+stoi(char *s)
 {
        int base = 10;
        int n = 0;