diff options
author | jbj <devnull@localhost> | 1999-10-30 16:43:29 +0000 |
---|---|---|
committer | jbj <devnull@localhost> | 1999-10-30 16:43:29 +0000 |
commit | 2b84d36c2edb0acd8f47bd3316e1535cfdf60fc0 (patch) | |
tree | 5d1b1ea400702929b202811bf728a6e6ecf098ab /lib/package.c | |
parent | 533991efdbbeff0c0f3b6f5b008c748ee61bc85e (diff) | |
download | rpm-2b84d36c2edb0acd8f47bd3316e1535cfdf60fc0.tar.gz rpm-2b84d36c2edb0acd8f47bd3316e1535cfdf60fc0.tar.bz2 rpm-2b84d36c2edb0acd8f47bd3316e1535cfdf60fc0.zip |
Make fdFileno() static, use Fileno()/Ferror() analogues throughout.
Make ufdClose() static, use Fclose() with ufdio cookie throughout.
rpm.c: Clean urlinfoCache and rpmBuildArgs leaks.
url.c: urlIsURL() should be here, not in rpmio.c.
url.c: Preserve FD_t abstraction by creating ufdGetUrlinfo().
url.c: Create freeUrlinfoCache().
rpmio.c: Create ufdio cookie.
CVS patchset: 3407
CVS date: 1999/10/30 16:43:29
Diffstat (limited to 'lib/package.c')
-rw-r--r-- | lib/package.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/package.c b/lib/package.c index 44a0b3403..53af5b77a 100644 --- a/lib/package.c +++ b/lib/package.c @@ -218,7 +218,7 @@ static int readPackageHeaders(FD_t fd, /*@out@*/struct rpmlead * leadPtr, hdr = hdrPtr ? hdrPtr : &hdrBlock; lead = leadPtr ? leadPtr : &leadBlock; - fstat(fdFileno(fd), &sb); + fstat(Fileno(fd), &sb); /* if fd points to a socket, pipe, etc, sb.st_size is *always* zero */ if (S_ISREG(sb.st_mode) && sb.st_size < sizeof(*lead)) return 1; |