From 77e1ab9f73921171d5f684e0c20836e78957b5af Mon Sep 17 00:00:00 2001 From: Mike Christie Date: Tue, 2 Aug 2011 00:16:58 -0500 Subject: [PATCH] iscsi tools: handle compile warnings about unused variables path is not used in a couple functions in iscsi_sysfs.c, so remove it. --- usr/iscsi_sysfs.c | 4 ---- 1 file changed, 4 deletions(-) diff --git a/usr/iscsi_sysfs.c b/usr/iscsi_sysfs.c index 55a5438..d967fa4 100644 --- a/usr/iscsi_sysfs.c +++ b/usr/iscsi_sysfs.c @@ -842,7 +842,6 @@ char *iscsi_sysfs_get_blockdev_from_lun(int host_no, int target, int lun) { char devpath[PATH_SIZE]; char path_full[PATH_SIZE]; - char *path; char id[NAME_SIZE]; DIR *dirfd; struct dirent *dent; @@ -861,7 +860,6 @@ char *iscsi_sysfs_get_blockdev_from_lun(int host_no, int target, int lun) sysfs_len = strlcpy(path_full, sysfs_path, sizeof(path_full)); if(sysfs_len >= sizeof(path_full)) sysfs_len = sizeof(path_full) - 1; - path = &path_full[sysfs_len]; strlcat(path_full, devpath, sizeof(path_full)); dirfd = opendir(path_full); @@ -926,7 +924,6 @@ static uint32_t get_target_no_from_sid(uint32_t sid, int *err) { char devpath[PATH_SIZE]; char path_full[PATH_SIZE]; - char *path; char id[NAME_SIZE]; DIR *dirfd; struct dirent *dent; @@ -951,7 +948,6 @@ static uint32_t get_target_no_from_sid(uint32_t sid, int *err) sysfs_len = strlcpy(path_full, sysfs_path, sizeof(path_full)); if(sysfs_len >= sizeof(path_full)) sysfs_len = sizeof(path_full) - 1; - path = &path_full[sysfs_len]; strlcat(path_full, devpath, sizeof(path_full)); strlcat(path_full, "/device", sizeof(devpath)); -- 2.11.4.GIT