diff options
Diffstat (limited to 'gdb/python')
| -rw-r--r-- | gdb/python/py-param.c | 7 | ||||
| -rw-r--r-- | gdb/python/py-record-btrace.c | 2 | ||||
| -rw-r--r-- | gdb/python/py-record.c | 2 |
3 files changed, 4 insertions, 7 deletions
diff --git a/gdb/python/py-param.c b/gdb/python/py-param.c index d37fd30..49819ce 100644 --- a/gdb/python/py-param.c +++ b/gdb/python/py-param.c @@ -29,13 +29,10 @@ #include "arch-utils.h" /* Parameter constants and their values. */ -struct parm_constant -{ +static struct { const char *name; int value; -}; - -struct parm_constant parm_constants[] = +} parm_constants[] = { { "PARAM_BOOLEAN", var_boolean }, /* ARI: var_boolean */ { "PARAM_AUTO_BOOLEAN", var_auto_boolean }, diff --git a/gdb/python/py-record-btrace.c b/gdb/python/py-record-btrace.c index d5a3da9..1c10a05 100644 --- a/gdb/python/py-record-btrace.c +++ b/gdb/python/py-record-btrace.c @@ -808,7 +808,7 @@ recpy_bt_goto (PyObject *self, PyObject *args) /* BtraceList methods. */ -struct PyMethodDef btpy_list_methods[] = +static PyMethodDef btpy_list_methods[] = { { "count", btpy_list_count, METH_O, "count number of occurrences"}, { "index", btpy_list_index, METH_O, "index of entry"}, diff --git a/gdb/python/py-record.c b/gdb/python/py-record.c index ddfb5d8..1747f74 100644 --- a/gdb/python/py-record.c +++ b/gdb/python/py-record.c @@ -45,7 +45,7 @@ PyTypeObject recpy_func_type = { /* Python RecordGap type. */ -PyTypeObject recpy_gap_type = { +static PyTypeObject recpy_gap_type = { PyVarObject_HEAD_INIT (NULL, 0) }; |
