summaryrefslogtreecommitdiff
path: root/build.c
diff options
context:
space:
mode:
authorPanu Matilainen <pmatilai@redhat.com>2007-12-03 16:33:18 +0200
committerPanu Matilainen <pmatilai@redhat.com>2007-12-03 16:33:18 +0200
commit9cbf0349b84fb19c6dddbe4f7a3246d4c949ad09 (patch)
tree8eedf8632f760089f94c07a28fd6ea363ed3a22a /build.c
parentfb90b8b4eb46c4008326e07b4866f4bf0875df83 (diff)
downloadlibrpm-tizen-9cbf0349b84fb19c6dddbe4f7a3246d4c949ad09.tar.gz
librpm-tizen-9cbf0349b84fb19c6dddbe4f7a3246d4c949ad09.tar.bz2
librpm-tizen-9cbf0349b84fb19c6dddbe4f7a3246d4c949ad09.zip
Use regular POSIX functions instead of "RPC" clones
- we only care about local files
Diffstat (limited to 'build.c')
-rw-r--r--build.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/build.c b/build.c
index 4dbb062f4..04a5a0c8c 100644
--- a/build.c
+++ b/build.c
@@ -226,7 +226,7 @@ static int buildForTarget(rpmts ts, const char * arg, BTA_t ba)
if (specut != URL_IS_DASH) {
struct stat st;
- if (Stat(specURL, &st) < 0) {
+ if (stat(specURL, &st) < 0) {
rpmlog(RPMLOG_ERR, _("failed to stat %s: %m\n"), specURL);
rc = 1;
goto exit;
@@ -277,7 +277,7 @@ static int buildForTarget(rpmts ts, const char * arg, BTA_t ba)
}
if (ba->buildMode == 't')
- (void) Unlink(specURL);
+ (void) unlink(specURL);
rc = 0;
exit: