diff options
author | Panu Matilainen <pmatilai@redhat.com> | 2010-09-22 09:46:25 +0300 |
---|---|---|
committer | Panu Matilainen <pmatilai@redhat.com> | 2010-09-22 09:46:25 +0300 |
commit | b4111d5123606b5999e932e57578bace37b4924a (patch) | |
tree | 3e7a4654d44ebada7e8e26c7cbee9ecfae025fe2 /python | |
parent | 79301695cec6a2e98b42291c39904b721020a0e5 (diff) | |
download | rpm-b4111d5123606b5999e932e57578bace37b4924a.tar.gz |
Use HEADER_MAGIC_FOO enums instead of 0/1 in python header code
Diffstat (limited to 'python')
-rw-r--r-- | python/header-py.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/python/header-py.c b/python/header-py.c index 5da946c90..5eb8dd8fa 100644 --- a/python/header-py.c +++ b/python/header-py.c @@ -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; |