From 63b7e447d478af9d441bafd7549044a0cba49a7b Mon Sep 17 00:00:00 2001 From: root Date: Tue, 12 Dec 1995 17:49:04 +0000 Subject: [PATCH] include rpmlib.h CVS patchset: 8 CVS date: 1995/12/12 17:49:04 --- lib/test.c | 19 +++++++++---------- 1 file changed, 9 insertions(+), 10 deletions(-) diff --git a/lib/test.c b/lib/test.c index 32e4151..9c9dbff 100644 --- a/lib/test.c +++ b/lib/test.c @@ -1,6 +1,5 @@ -#include - #include "header.h" +#include "rpmlib.h" void main(int argc, char ** argv) { @@ -15,14 +14,14 @@ void main(int argc, char ** argv) h = newHeader(); - addEntry(h, NAME, STRING_TYPE, "MarcEwing", 1); - addEntry(h, VERSION, STRING_TYPE, "1.1", 1); - addEntry(h, VERSION, STRING_TYPE, sa, 3); - addEntry(h, SIZE, INT32_TYPE, &i32, 1); - addEntry(h, SIZE, INT16_TYPE, &i16, 1); - addEntry(h, SIZE, INT16_TYPE, i16a, 3); - addEntry(h, VENDOR, CHAR_TYPE, ca, strlen(ca)); - addEntry(h, SIZE, INT32_TYPE, i32a, 3); + addEntry(h, RPMTAG_NAME, STRING_TYPE, "MarcEwing", 1); + addEntry(h, RPMTAG_VERSION, STRING_TYPE, "1.1", 1); + addEntry(h, RPMTAG_VERSION, STRING_TYPE, sa, 3); + addEntry(h, RPMTAG_SIZE, INT32_TYPE, &i32, 1); + addEntry(h, RPMTAG_SIZE, INT16_TYPE, &i16, 1); + addEntry(h, RPMTAG_SIZE, INT16_TYPE, i16a, 3); + addEntry(h, RPMTAG_VENDOR, CHAR_TYPE, ca, strlen(ca)); + addEntry(h, RPMTAG_SIZE, INT32_TYPE, i32a, 3); f = fopen("test.out", "w"); writeHeader(f, h); -- 2.7.4