Use HEADER_MAGIC_FOO enums instead of 0/1 in python header code

This commit is contained in:
Panu Matilainen 2010-09-22 09:46:25 +03:00
parent 79301695ce
commit b4111d5123
1 changed files with 2 additions and 2 deletions

View File

@ -165,7 +165,7 @@ static PyObject * hdrUnload(hdrObject * s, PyObject * args, PyObject *keywords)
h = headerCopy(s->h); /* XXX strip region tags, etc */
headerFree(s->h);
}
len = headerSizeof(h, 0);
len = headerSizeof(h, HEADER_MAGIC_NO);
buf = headerUnload(h);
h = headerFree(h);
@ -268,7 +268,7 @@ static PyObject *hdrConvert(hdrObject *self, PyObject *args, PyObject *kwds)
static PyObject * hdrWrite(hdrObject *s, PyObject *args, PyObject *kwds)
{
char *kwlist[] = { "file", "magic", NULL };
int magic = 1;
int magic = HEADER_MAGIC_YES;
rpmfdObject *fdo = NULL;
int rc;