Whamcloud - gitweb
libblkid: Unexport the private symbol blkid_devdirs
authorTheodore Ts'o <tytso@mit.edu>
Wed, 27 Aug 2008 04:00:44 +0000 (00:00 -0400)
committerTheodore Ts'o <tytso@mit.edu>
Wed, 27 Aug 2008 04:00:44 +0000 (00:00 -0400)
blkid_devdirs was defined in blkidP.h and was never intended to be
used outside of the library.  Since it no longer needs to be shared
across object files, rename it and turn it into a static variable.

Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
debian/libblkid1.symbols
lib/blkid/blkidP.h
lib/blkid/devno.c

index 889331b..c304b83 100644 (file)
@@ -7,7 +7,7 @@ libblkid.so.1 libblkid1 #MINVER#
  blkid_dev_iterate_end@Base 1.37-2sarge1
  blkid_dev_next@Base 1.37-2sarge1
  blkid_dev_set_search@Base 1.38-1
- blkid_devdirs@Base 1.37-2sarge1
+#MISSING: 1.41.1-1# blkid_devdirs@Base 1.37-2sarge1
  blkid_devno_to_devname@Base 1.37-2sarge1
  blkid_find_dev_with_tag@Base 1.37-2sarge1
  blkid_find_tag_dev@Base 1.37-2sarge1
index 9d1e459..e0f11a0 100644 (file)
@@ -105,7 +105,6 @@ extern char *blkid_strdup(const char *s);
 extern char *blkid_strndup(const char *s, const int length);
 
 #define BLKID_CACHE_FILE "/etc/blkid.tab"
-extern const char *blkid_devdirs[];
 
 #define BLKID_ERR_IO    5
 #define BLKID_ERR_PROC  9
index 1962c8d..e9c174f 100644 (file)
@@ -131,7 +131,7 @@ void blkid__scan_dir(char *dirname, dev_t devno, struct dir_list **list,
 }
 
 /* Directories where we will try to search for device numbers */
-const char *blkid_devdirs[] = { "/devices", "/devfs", "/dev", NULL };
+static const char *devdirs[] = { "/devices", "/devfs", "/dev", NULL };
 
 /*
  * This function finds the pathname to a block device with a given
@@ -148,7 +148,7 @@ char *blkid_devno_to_devname(dev_t devno)
         * Add the starting directories to search in reverse order of
         * importance, since we are using a stack...
         */
-       for (dir = blkid_devdirs; *dir; dir++)
+       for (dir = devdirs; *dir; dir++)
                add_to_dirlist(*dir, &list);
 
        while (list) {