fdisk: declare kwlist array static
parent
f08c9618ea
commit
9bf2d030c9
|
|
@ -43,7 +43,7 @@ static PyObject *Context_new(PyTypeObject *type,
|
||||||
#define Context_HELP "Context(device=None, details=True, readonly=False)"
|
#define Context_HELP "Context(device=None, details=True, readonly=False)"
|
||||||
static int Context_init(ContextObject *self, PyObject *args, PyObject *kwds)
|
static int Context_init(ContextObject *self, PyObject *args, PyObject *kwds)
|
||||||
{
|
{
|
||||||
char *kwlist[] = {
|
static char *kwlist[] = {
|
||||||
"device", "details", "readonly",
|
"device", "details", "readonly",
|
||||||
NULL
|
NULL
|
||||||
};
|
};
|
||||||
|
|
|
||||||
5
label.c
5
label.c
|
|
@ -37,12 +37,9 @@ static PyObject *Label_new(PyTypeObject *type,
|
||||||
#define Label_HELP "Label(context=None)"
|
#define Label_HELP "Label(context=None)"
|
||||||
static int Label_init(LabelObject *self, PyObject *args, PyObject *kwds)
|
static int Label_init(LabelObject *self, PyObject *args, PyObject *kwds)
|
||||||
{
|
{
|
||||||
|
static char *kwlist[] = { "context", NULL };
|
||||||
ContextObject *cxt = NULL;
|
ContextObject *cxt = NULL;
|
||||||
struct fdisk_label *lb;
|
struct fdisk_label *lb;
|
||||||
char *kwlist[] = {
|
|
||||||
"context",
|
|
||||||
NULL
|
|
||||||
};
|
|
||||||
|
|
||||||
if (!PyArg_ParseTupleAndKeywords(args,
|
if (!PyArg_ParseTupleAndKeywords(args,
|
||||||
kwds, "|O!", kwlist,
|
kwds, "|O!", kwlist,
|
||||||
|
|
|
||||||
|
|
@ -40,7 +40,7 @@ static PyObject *Partition_new(PyTypeObject *type,
|
||||||
"end_follow_default=False)"
|
"end_follow_default=False)"
|
||||||
static int Partition_init(PartitionObject *self, PyObject *args, PyObject *kwds)
|
static int Partition_init(PartitionObject *self, PyObject *args, PyObject *kwds)
|
||||||
{
|
{
|
||||||
char *kwlist[] = {
|
static char *kwlist[] = {
|
||||||
"partno_follow_default",
|
"partno_follow_default",
|
||||||
"start_follow_default",
|
"start_follow_default",
|
||||||
"end_follow_default",
|
"end_follow_default",
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue