summaryrefslogtreecommitdiffstats
path: root/python
diff options
context:
space:
mode:
authorDavid Lamparter <equinox@opensourcerouting.org>2018-08-28 10:59:02 +0200
committerDavid Lamparter <equinox@opensourcerouting.org>2018-09-08 21:30:42 +0200
commitae9eebcaeb68cae4f2e4ae6cc689b505c9814591 (patch)
treee5d35c2e985f90134fa3cb5a0912ebfba0a4df7b /python
parent*: fix config.h/zebra.h include order (diff)
downloadfrr-ae9eebcaeb68cae4f2e4ae6cc689b505c9814591.tar.xz
frr-ae9eebcaeb68cae4f2e4ae6cc689b505c9814591.zip
*: fix some solaris warnings
Signed-off-by: David Lamparter <equinox@diac24.net>
Diffstat (limited to 'python')
-rw-r--r--python/clidef.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/python/clidef.py b/python/clidef.py
index 4134f4c94..a140ce3d5 100644
--- a/python/clidef.py
+++ b/python/clidef.py
@@ -96,7 +96,7 @@ class IP4Handler(IPBase):
code = Template('_fail = !inet_aton(argv[_i]->arg, &$varname);')
class IP6Handler(IPBase):
argtype = 'struct in6_addr'
- decl = Template('struct in6_addr $varname = IN6ADDR_ANY_INIT;')
+ decl = Template('struct in6_addr $varname = {};')
code = Template('_fail = !inet_pton(AF_INET6, argv[_i]->arg, &$varname);')
class IPGenHandler(IPBase):
argtype = 'const union sockunion *'