diff options
| author | David Lamparter <equinox@opensourcerouting.org> | 2018-12-01 16:49:45 +0100 |
|---|---|---|
| committer | David Lamparter <equinox@opensourcerouting.org> | 2018-12-01 16:49:45 +0100 |
| commit | 3e30070331b8a6f8173895a074d342c9ebf07a25 (patch) | |
| tree | 886c0c61fcb7c6d81e681f3d7b7a0f14e62d9741 /lib/command_py.c | |
| parent | 7f984a3394f002c9b7a2d25abe926c1e87421b0e (diff) | |
Revert "isisd lib ospfd pbrd python: fix empty init"
This reverts commit 48944eb65e1d1ced03d46121d923d9d613a480d5.
We're using GNU C, not ISO C - and this commit triggers new (real)
warnings about {0} instead of bogus ones about {}.
Signed-off-by: David Lamparter <equinox@diac24.net>
Diffstat (limited to 'lib/command_py.c')
| -rw-r--r-- | lib/command_py.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/command_py.c b/lib/command_py.c index ca0c8be79d..58b7982665 100644 --- a/lib/command_py.c +++ b/lib/command_py.c @@ -92,7 +92,7 @@ static PyMemberDef members_graph_node[] = { member(deprecated, T_BOOL), member(hidden, T_BOOL), member(text, T_STRING), member(desc, T_STRING), member(min, T_LONGLONG), member(max, T_LONGLONG), - member(varname, T_STRING), {0}, + member(varname, T_STRING), {}, }; #undef member @@ -137,7 +137,7 @@ static PyObject *graph_node_join(PyObject *self, PyObject *args) static PyMethodDef methods_graph_node[] = { {"next", graph_node_next, METH_NOARGS, "outbound graph edge list"}, {"join", graph_node_join, METH_NOARGS, "outbound join node"}, - {0}}; + {}}; static void graph_node_wrap_free(void *arg) { @@ -228,7 +228,7 @@ static PyObject *graph_to_pyobj(struct wrap_graph *wgraph, } static PyMemberDef members_graph[] = { member(definition, T_STRING), - {0}, + {}, }; #undef member @@ -242,7 +242,7 @@ static PyObject *graph_first(PyObject *self, PyObject *args) static PyMethodDef methods_graph[] = { {"first", graph_first, METH_NOARGS, "first graph node"}, - {0}}; + {}}; static PyObject *graph_parse(PyTypeObject *type, PyObject *args, PyObject *kwds); |
