diff options
author | Panu Matilainen <pmatilai@redhat.com> | 2007-12-03 16:33:18 +0200 |
---|---|---|
committer | Panu Matilainen <pmatilai@redhat.com> | 2007-12-03 16:33:18 +0200 |
commit | 9cbf0349b84fb19c6dddbe4f7a3246d4c949ad09 (patch) | |
tree | 8eedf8632f760089f94c07a28fd6ea363ed3a22a /build/build.c | |
parent | fb90b8b4eb46c4008326e07b4866f4bf0875df83 (diff) | |
download | rpm-9cbf0349b84fb19c6dddbe4f7a3246d4c949ad09.tar.gz rpm-9cbf0349b84fb19c6dddbe4f7a3246d4c949ad09.tar.bz2 rpm-9cbf0349b84fb19c6dddbe4f7a3246d4c949ad09.zip |
Use regular POSIX functions instead of "RPC" clones
- we only care about local files
Diffstat (limited to 'build/build.c')
-rw-r--r-- | build/build.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/build/build.c b/build/build.c index 0072dc663..f94274ac2 100644 --- a/build/build.c +++ b/build/build.c @@ -22,13 +22,13 @@ static void doRmSource(rpmSpec spec) int rc; #if 0 - rc = Unlink(spec->specFile); + rc = unlink(spec->specFile); #endif for (p = spec->sources; p != NULL; p = p->next) { if (! (p->flags & RPMBUILD_ISNO)) { const char *fn = rpmGetPath("%{_sourcedir}/", p->source, NULL); - rc = Unlink(fn); + rc = unlink(fn); fn = _free(fn); } } @@ -37,7 +37,7 @@ static void doRmSource(rpmSpec spec) for (p = pkg->icon; p != NULL; p = p->next) { if (! (p->flags & RPMBUILD_ISNO)) { const char *fn = rpmGetPath("%{_sourcedir}/", p->source, NULL); - rc = Unlink(fn); + rc = unlink(fn); fn = _free(fn); } } @@ -227,7 +227,7 @@ fprintf(stderr, "*** addMacros\n"); exit: if (scriptName) { if (!rc) - (void) Unlink(scriptName); + (void) unlink(scriptName); scriptName = _free(scriptName); } if (u != NULL) { @@ -324,7 +324,7 @@ int buildSpec(rpmts ts, rpmSpec spec, int what, int test) doRmSource(spec); if (what & RPMBUILD_RMSPEC) - (void) Unlink(spec->specFile); + (void) unlink(spec->specFile); exit: if (rc && rpmlogGetNrecs() > 0) { |