Remove timedRead() define
authorPanu Matilainen <pmatilai@redhat.com>
Tue, 9 Oct 2007 10:27:47 +0000 (13:27 +0300)
committerPanu Matilainen <pmatilai@redhat.com>
Tue, 9 Oct 2007 10:27:47 +0000 (13:27 +0300)
rpmio/rpmio.c
rpmio/rpmio.h

index c260b1d..262a625 100644 (file)
@@ -874,6 +874,11 @@ static struct FDIO_s ufdio_s = {
 };
 FDIO_t ufdio = &ufdio_s ;
 
+int timedRead(FD_t fd, void * bufptr, int length)
+{
+    return ufdio->read(fd, bufptr, length);
+}
+
 /* =============================================================== */
 /* Support for GZIP library.
  */
index 6ca1367..c96af8e 100644 (file)
@@ -413,9 +413,11 @@ int ufdCopy(FD_t sfd, FD_t tfd);
 int ufdGetFile( FD_t sfd, FD_t tfd);
 
 /**
+ * XXX the name is misleading, this is a legacy wrapper that ensures 
+ * only S_ISREG() files are read, nothing to do with timed... 
+ * TODO: get this out of the API
  */
 int timedRead(FD_t fd, void * bufptr, int length);
-#define        timedRead       (ufdio->read)
 
 /**
  */