diff options
author | Panu Matilainen <pmatilai@redhat.com> | 2007-10-29 09:42:21 +0200 |
---|---|---|
committer | Panu Matilainen <pmatilai@redhat.com> | 2007-10-29 09:42:21 +0200 |
commit | 1fe38d71cc4049175b1a0ba7c493e20665880692 (patch) | |
tree | 98b07f909525d095649249d0737888d0a03494c0 /build/build.c | |
parent | 46e669f06e9a66f1833d19481c8f2d1adc041645 (diff) | |
download | librpm-tizen-1fe38d71cc4049175b1a0ba7c493e20665880692.tar.gz librpm-tizen-1fe38d71cc4049175b1a0ba7c493e20665880692.tar.bz2 librpm-tizen-1fe38d71cc4049175b1a0ba7c493e20665880692.zip |
Use fdGetFILE() instead of rpmio internal fdGetFp() everywhere
Diffstat (limited to 'build/build.c')
-rw-r--r-- | build/build.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/build/build.c b/build/build.c index 3d4c4c133..f6f9cf33d 100644 --- a/build/build.c +++ b/build/build.c @@ -5,7 +5,6 @@ #include "system.h" -#include "rpmio_internal.h" #include "rpmbuild.h" #include "rpmerr.h" #include "misc.h" /* XXX for makeTempFile */ @@ -135,13 +134,12 @@ int doScript(rpmSpec spec, rpmBuildFlags what, const char *name, StringBuf sb, i goto exit; } - if (fdGetFp(fd) == NULL) + if (fdGetFILE(fd) == NULL) xfd = Fdopen(fd, "w.fpio"); else xfd = fd; - /* FIX: cast? */ - if ((fp = fdGetFp(xfd)) == NULL) { + if ((fp = fdGetFILE(xfd)) == NULL) { rc = RPMERR_SCRIPT; goto exit; } |