summaryrefslogtreecommitdiff
path: root/build/build.c
diff options
context:
space:
mode:
Diffstat (limited to 'build/build.c')
-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"),