summaryrefslogtreecommitdiff
path: root/build/rpmfc.c
diff options
context:
space:
mode:
authorjbj <devnull@localhost>2002-11-08 22:27:08 +0000
committerjbj <devnull@localhost>2002-11-08 22:27:08 +0000
commit0f9652535c818cd92489dbce3c44e777507b68bd (patch)
tree68397de1447f0e6b13dc44260909e0f7bf11ecba /build/rpmfc.c
parenta83d336131ac2f993aacf6625bd2ded4775335fb (diff)
downloadlibrpm-tizen-0f9652535c818cd92489dbce3c44e777507b68bd.tar.gz
librpm-tizen-0f9652535c818cd92489dbce3c44e777507b68bd.tar.bz2
librpm-tizen-0f9652535c818cd92489dbce3c44e777507b68bd.zip
Sanity.
CVS patchset: 5843 CVS date: 2002/11/08 22:27:08
Diffstat (limited to 'build/rpmfc.c')
-rw-r--r--build/rpmfc.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/build/rpmfc.c b/build/rpmfc.c
index b0c17d8e1..03f94e8fb 100644
--- a/build/rpmfc.c
+++ b/build/rpmfc.c
@@ -45,7 +45,7 @@ static int rpmfcExpandAppend(/*@out@*/ ARGV_t * argvp, const ARGV_t av)
* @return buffered stdout from script, NULL on error
*/
/*@null@*/
-static StringBuf getOutputFrom(/*@null@*/ const char * dir, char * argv[],
+static StringBuf getOutputFrom(/*@null@*/ const char * dir, ARGV_t argv,
const char * writePtr, int writeBytesLeft,
int failNonZero)
/*@globals fileSystem, internalState@*/
@@ -83,7 +83,7 @@ static StringBuf getOutputFrom(/*@null@*/ const char * dir, char * argv[],
}
unsetenv("MALLOC_CHECK_");
- (void) execvp(argv[0], argv);
+ (void) execvp(argv[0], (char *const *)argv);
/* XXX this error message is probably not seen. */
rpmError(RPMERR_EXEC, _("Couldn't exec %s: %s\n"),
argv[0], strerror(errno));
@@ -705,8 +705,6 @@ static int rpmfcELF(rpmfc fc)
auxoffset += aux->vda_next;
/*@innercontinue@*/ continue;
}
-assert(soname != NULL);
-
buf[0] = '\0';
t = buf;
sprintf(t, "%08d%c ", fc->ix, deptype);