diff options
Diffstat (limited to 'build/build.c')
-rw-r--r-- | build/build.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/build/build.c b/build/build.c index 6dc6fbc7b..d6d3d3a62 100644 --- a/build/build.c +++ b/build/build.c @@ -79,7 +79,7 @@ int doScript(Spec spec, int what, char *name, StringBuf sb, int test) case RPMBUILD_STRINGBUF: break; } - if ((what != RPMBUILD_RMBUILD) && !sb) { + if ((what != RPMBUILD_RMBUILD) && sb == NULL) { return 0; } @@ -133,7 +133,7 @@ int doScript(Spec spec, int what, char *name, StringBuf sb, int test) FREE(scriptName); return RPMERR_SCRIPT; } - wait(&status); + (void)wait(&status); if (! WIFEXITED(status) || WEXITSTATUS(status)) { rpmError(RPMERR_SCRIPT, _("Bad exit status from %s (%s)"), scriptName, name); |