]> git.ipfire.org Git - thirdparty/e2fsprogs.git/commitdiff
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 889331b1543f6f2bbc8b5f11b6716c46824523e5..c304b8370db14099b223b02659eab3a537e75436 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 9d1e459c98e479f7c2140b57a36935982fd9b8a9..e0f11a071b4afb8661c6d1b2c45926da905818c5 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 1962c8d4c0569b772f98c0f7ade0e3b8955f32c5..e9c174f44ba3dab253894c5bc92aac3353f316b6 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) {