[Pkg-iscsi-maintainers] [SCM] Debian Open-iSCSI Packaging branch, upstream-mnc, updated. 2.0-872-193-gde2c0e7

Mike Christie michaelc at cs.wisc.edu
Sat Apr 7 15:44:12 UTC 2012


The following commit has been merged in the upstream-mnc branch:
commit 6941cfcf2e5a85d688413c217a535d329af24efa
Author: Mike Christie <michaelc at cs.wisc.edu>
Date:   Mon Mar 12 02:53:04 2012 -0500

    iscsi tools: remove unused len variable
    
    len is not used in cfg_get_string_param so remove it.

diff --git a/usr/iscsi_util.c b/usr/iscsi_util.c
index 19d28f8..c394fcd 100644
--- a/usr/iscsi_util.c
+++ b/usr/iscsi_util.c
@@ -181,7 +181,6 @@ char *strstrip(char *s)
 char *cfg_get_string_param(char *pathname, const char *key)
 {
 	FILE *f = NULL;
-	int len;
 	char *line, buffer[1024];
 	char *value = NULL, *param, *comment;
 
@@ -190,7 +189,6 @@ char *cfg_get_string_param(char *pathname, const char *key)
 		return NULL;
 	}
 
-	len = strlen(key);
 	if ((f = fopen(pathname, "r"))) {
 		while ((line = fgets(buffer, sizeof (buffer), f))) {
 			param = strstr(line, key);

-- 
Debian Open-iSCSI Packaging



More information about the Pkg-iscsi-maintainers mailing list