Make fdUpdateDigests() static now that its possible
authorPanu Matilainen <pmatilai@redhat.com>
Wed, 14 Oct 2009 14:22:25 +0000 (17:22 +0300)
committerPanu Matilainen <pmatilai@redhat.com>
Wed, 14 Oct 2009 14:22:25 +0000 (17:22 +0300)
rpmio/rpmio.c
rpmio/rpmio_internal.h

index 15e3c3f..94747aa 100644 (file)
@@ -212,6 +212,11 @@ static const FDIO_t bzdio;
 static const FDIO_t xzdio;
 static const FDIO_t lzdio;
 
+/** \ingroup rpmio
+ * Update digest(s) attached to fd.
+ */
+static void fdUpdateDigests(FD_t fd, const unsigned char * buf, size_t buflen);
+
 /**
  */
 int _rpmio_debug = 0;
@@ -2179,7 +2184,7 @@ void fdInitDigest(FD_t fd, pgpHashAlgo hashalgo, int flags)
     fdstat_exit(fd, FDSTAT_DIGEST, (ssize_t) 0);
 }
 
-void fdUpdateDigests(FD_t fd, const unsigned char * buf, size_t buflen)
+static void fdUpdateDigests(FD_t fd, const unsigned char * buf, size_t buflen)
 {
     if (fd && fd->digests) {
        fdstat_enter(fd, FDSTAT_DIGEST);
@@ -2199,3 +2204,5 @@ void fdFiniDigest(FD_t fd, pgpHashAlgo hashalgo,
        fdstat_exit(fd, FDSTAT_DIGEST, (ssize_t) 0);
     }
 }
+
+
index 2527d1c..fa4fdd9 100644 (file)
@@ -21,11 +21,6 @@ rpmDigestBundle fdGetBundle(FD_t fd);
 void fdInitDigest(FD_t fd, pgpHashAlgo hashalgo, int flags);
 
 /** \ingroup rpmio
- * Update digest(s) attached to fd.
- */
-void fdUpdateDigests(FD_t fd, const unsigned char * buf, size_t buflen);
-
-/** \ingroup rpmio
  */
 void fdFiniDigest(FD_t fd, pgpHashAlgo hashalgo,
                void ** datap,