aboutsummaryrefslogtreecommitdiffstats
path: root/epan/dissectors/packet-tacacs.c
diff options
context:
space:
mode:
authorMartin Kaiser <wireshark@kaiser.cx>2013-09-09 12:53:14 +0000
committerMartin Kaiser <wireshark@kaiser.cx>2013-09-09 12:53:14 +0000
commit9c023c026565d371735b4fc978f985b1e420d05b (patch)
tree62a180bfd855e4c04969313272bdb92283dcdc0c /epan/dissectors/packet-tacacs.c
parente3eb3456ff060734f958b57c098ba435d69f2672 (diff)
we don't need brackets around SET_ADDRESS() any more
svn path=/trunk/; revision=51866
Diffstat (limited to 'epan/dissectors/packet-tacacs.c')
-rw-r--r--epan/dissectors/packet-tacacs.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/epan/dissectors/packet-tacacs.c b/epan/dissectors/packet-tacacs.c
index 692ff0dd5c..0d5eda2f58 100644
--- a/epan/dissectors/packet-tacacs.c
+++ b/epan/dissectors/packet-tacacs.c
@@ -822,11 +822,8 @@ mkipv4_address( address **addr, const char *str_addr )
*addr=(address *)g_malloc( sizeof(address) );
addr_data=(char *)g_malloc( 4 );
ret = inet_pton( AF_INET, str_addr, addr_data );
- /* brackets are required here, otherwise the semicolon would terminate
- the if-else */
- if (ret==1) {
+ if (ret==1)
SET_ADDRESS(*addr, AT_IPv4, 4, addr_data);
- }
else
SET_ADDRESS(*addr, AT_STRINGZ, (int)strlen(ADDR_INVLD)+1, ADDR_INVLD);
}