summaryrefslogtreecommitdiff
path: root/build/files.c
diff options
context:
space:
mode:
Diffstat (limited to 'build/files.c')
-rw-r--r--build/files.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/build/files.c b/build/files.c
index f9ab549dc..24b6e3c9e 100644
--- a/build/files.c
+++ b/build/files.c
@@ -1220,7 +1220,7 @@ static int processPackageFiles(Spec spec, Package pkg,
pkg->fileFile, Fstrerror(fd));
return RPMERR_BADFILENAME;
}
- while (fgets(buf, sizeof(buf), fpio->ffileno(fd))) {
+ while (fgets(buf, sizeof(buf), (FILE *)fdGetFp(fd))) {
handleComments(buf);
if (expandMacros(spec, spec->macros, buf, sizeof(buf))) {
rpmError(RPMERR_BADSPEC, _("line: %s"), buf);