diff options
Diffstat (limited to 'build')
-rw-r--r-- | build/Makefile.am | 3 | ||||
-rw-r--r-- | build/myftw.c | 2 | ||||
-rw-r--r-- | build/pack.c | 10 |
3 files changed, 9 insertions, 6 deletions
diff --git a/build/Makefile.am b/build/Makefile.am index 7ee98d00a..211fb8586 100644 --- a/build/Makefile.am +++ b/build/Makefile.am @@ -2,8 +2,7 @@ AUTOMAKE_OPTIONS = 1.4 foreign -INCLUDES = \ - -I$(top_srcdir) \ +INCLUDES = -I. \ -I$(top_srcdir)/lib \ -I$(top_srcdir)/rpmdb \ -I$(top_srcdir)/rpmio \ diff --git a/build/myftw.c b/build/myftw.c index 65199ac4f..7bb6f35a6 100644 --- a/build/myftw.c +++ b/build/myftw.c @@ -229,6 +229,7 @@ int myftw (const char *dir, if (flag == MYFTW_D) { +/*@-compdef@*/ /* FIX: *dirs not defined */ if (retval == 0) retval = myftw_dir (dirs, 0, descriptors, buf, len, func, fl); if (dirs[0] != NULL) @@ -241,6 +242,7 @@ int myftw (const char *dir, errno = save; /*@=mods@*/ } +/*@=compdef@*/ } return retval; diff --git a/build/pack.c b/build/pack.c index 5fbaf9ba6..9a711e395 100644 --- a/build/pack.c +++ b/build/pack.c @@ -11,7 +11,9 @@ #include "cpio.h" #include "fsm.h" #include "psm.h" + #include "rpmfi.h" +#include "rpmts.h" #include "buildio.h" @@ -54,7 +56,7 @@ static int cpio_doio(FD_t fdo, /*@unused@*/ Header h, CSA_t csa, fileSystem@*/ /*@modifies fdo, csa, rpmGlobalMacroContext, fileSystem @*/ { - rpmTransactionSet ts = rpmtransCreateSet(NULL, NULL); + rpmTransactionSet ts = rpmtsCreate(); TFI_t fi = csa->cpioList; const char *failedFile = NULL; FD_t cfd; @@ -89,7 +91,7 @@ static int cpio_doio(FD_t fdo, /*@unused@*/ Header h, CSA_t csa, } failedFile = _free(failedFile); - ts = rpmtransFree(ts); + ts = rpmtsFree(ts); return rc; } @@ -319,7 +321,7 @@ int readRPM(const char *fileName, Spec *specp, struct rpmlead *lead, spec->packages->header = headerFree(spec->packages->header, "spec->packages"); /* Read the rpm lead, signatures, and header */ - { rpmTransactionSet ts = rpmtransCreateSet(NULL, NULL); + { rpmTransactionSet ts = rpmtsCreate(); /* XXX W2DO? pass fileName? */ /*@-mustmod@*/ /* LCL: segfault */ @@ -327,7 +329,7 @@ int readRPM(const char *fileName, Spec *specp, struct rpmlead *lead, &spec->packages->header); /*@=mustmod@*/ - ts = rpmtransFree(ts); + ts = rpmtsFree(ts); if (sigs) *sigs = NULL; /* XXX HACK */ } |