From: Theodore Ts'o Date: Wed, 27 Aug 2008 04:00:44 +0000 (-0400) Subject: libblkid: Unexport the private symbol blkid_devdirs X-Git-Tag: v1.41.1~30 X-Git-Url: https://git.whamcloud.com/?a=commitdiff_plain;h=0bb740621f33f54161416684b9003e93f11d2779;p=tools%2Fe2fsprogs.git libblkid: Unexport the private symbol blkid_devdirs 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" --- diff --git a/debian/libblkid1.symbols b/debian/libblkid1.symbols index 889331b..c304b83 100644 --- a/debian/libblkid1.symbols +++ b/debian/libblkid1.symbols @@ -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 diff --git a/lib/blkid/blkidP.h b/lib/blkid/blkidP.h index 9d1e459..e0f11a0 100644 --- a/lib/blkid/blkidP.h +++ b/lib/blkid/blkidP.h @@ -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 diff --git a/lib/blkid/devno.c b/lib/blkid/devno.c index 1962c8d..e9c174f 100644 --- a/lib/blkid/devno.c +++ b/lib/blkid/devno.c @@ -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) {