]> granicus.if.org Git - zfs/commitdiff
Resolve dirname shadow conflict with /usr/include/libgen.h:27 dirname
authorBrian Behlendorf <behlendorf1@llnl.gov>
Tue, 16 Dec 2008 22:29:35 +0000 (14:29 -0800)
committerBrian Behlendorf <behlendorf1@llnl.gov>
Tue, 16 Dec 2008 22:29:35 +0000 (14:29 -0800)
lib/libzfs/libzfs_mount.c

index 7c5c7f3ecaeed850c032b254610c643d60adbd6f..7e832b096e4b67faf43cc3d36686a1013f229550 100644 (file)
@@ -206,12 +206,12 @@ is_shared(libzfs_handle_t *hdl, const char *mountpoint, zfs_share_proto_t proto)
  * informative error message.
  */
 static boolean_t
-dir_is_empty(const char *dirname)
+dir_is_empty(const char *dirn)
 {
        DIR *dirp;
        struct dirent64 *dp;
 
-       if ((dirp = opendir(dirname)) == NULL)
+       if ((dirp = opendir(dirn)) == NULL)
                return (B_TRUE);
 
        while ((dp = readdir64(dirp)) != NULL) {