summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPanu Matilainen <pmatilai@redhat.com>2007-12-07 09:01:25 +0200
committerPanu Matilainen <pmatilai@redhat.com>2007-12-07 09:01:25 +0200
commit79fed162acf572d7c88fd6b08fae3ea088cf5fd3 (patch)
tree18cbeefc2434f726bad6e3911e0ff600c3d7b18b
parent9f34c3244316ee239739229bd3d1c89053d08179 (diff)
downloadlibrpm-tizen-79fed162acf572d7c88fd6b08fae3ea088cf5fd3.tar.gz
librpm-tizen-79fed162acf572d7c88fd6b08fae3ea088cf5fd3.tar.bz2
librpm-tizen-79fed162acf572d7c88fd6b08fae3ea088cf5fd3.zip
rpm5.org: use pid_t, not int in build doScript
-rw-r--r--build/build.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/build/build.c b/build/build.c
index f94274ac2..fc4172504 100644
--- a/build/build.c
+++ b/build/build.c
@@ -67,8 +67,8 @@ int doScript(rpmSpec spec, rpmBuildFlags what, const char *name, StringBuf sb, i
FD_t fd;
FD_t xfd;
- int child;
- int status;
+ pid_t child;
+ pid_t status;
int rc;
switch (what) {
@@ -215,7 +215,7 @@ fprintf(stderr, "*** addMacros\n");
_exit(-1);
}
- rc = waitpid(child, &status, 0);
+ pid = waitpid(child, &status, 0);
if (!WIFEXITED(status) || WEXITSTATUS(status)) {
rpmlog(RPMLOG_ERR, _("Bad exit status from %s (%s)\n"),