]> The Tcpdump Group git mirrors - tcpdump/commitdiff
Rename a variable to attempt to fix an AIX compile error.
authorGuy Harris <[email protected]>
Mon, 6 May 2013 02:52:14 +0000 (19:52 -0700)
committerGuy Harris <[email protected]>
Mon, 6 May 2013 02:52:36 +0000 (19:52 -0700)
On AIX 5.1, at least when compiling with xlc, the statement

       struct mp_remove_addr *rem_addr = (struct mp_remove_addr *) opt;

gets a complaint "Syntax error: possible missing '{'?"

"/usr/include/sys/xmem.h" #defines rem_addr; I've no idea whether we're
indirectly including that, but maybe we are and maybe that's causing the
problem.

print-mptcp.c

index c5fad69b74afcd01dc38e6b300fd9ce552aef8ad..17be82fae0a8b938b59a6b290dd909e6b86fe9ca 100644 (file)
@@ -217,8 +217,8 @@ static int add_addr_print(const u_char *opt, u_int opt_len, u_char flags _U_)
 
 static int remove_addr_print(const u_char *opt, u_int opt_len, u_char flags _U_)
 {
-        struct mp_remove_addr *rem_addr = (struct mp_remove_addr *) opt;
-        u_int8_t *addr_id = &rem_addr->addrs_id;
+        struct mp_remove_addr *remove_addr = (struct mp_remove_addr *) opt;
+        u_int8_t *addr_id = &remove_addr->addrs_id;
 
         if (opt_len < 4)
                 return 0;