From fa7e15c2abeaa5a0832a21c75084d2f406fd93ea Mon Sep 17 00:00:00 2001 From: Panu Matilainen Date: Mon, 24 Mar 2008 19:01:29 +0200 Subject: [PATCH] Use regular stream functions instead of rpmio in spec sanity check --- build.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/build.c b/build.c index f8a98b0..3845038 100644 --- a/build.c +++ b/build.c @@ -53,18 +53,18 @@ static int isSpecFile(const char * specfile) { char buf[256]; const char * s; - FD_t fd; + FILE * f; int count; int checking; - fd = Fopen(specfile, "r.ufdio"); - if (fd == NULL || Ferror(fd)) { + f = fopen(specfile, "r"); + if (f == NULL || ferror(f)) { rpmlog(RPMLOG_ERR, _("Unable to open spec file %s: %s\n"), - specfile, Fstrerror(fd)); + specfile, strerror(errno)); return 0; } - count = Fread(buf, sizeof(buf[0]), sizeof(buf), fd); - (void) Fclose(fd); + count = fread(buf, sizeof(buf[0]), sizeof(buf), f); + (void) fclose(f); checking = 1; for (s = buf; count--; s++) { -- 2.7.4