From: Sebastian Harl Date: Mon, 9 Jan 2012 14:12:55 +0000 (+0100) Subject: patches/bts559801_plugin_find_fix: Removed now unused variable as well. X-Git-Tag: collectd-4.10.4-1~4 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=9d438ddde25189b196f8d82da96ecc69276789b5;p=pkg-collectd.git patches/bts559801_plugin_find_fix: Removed now unused variable as well. Else, we'll get a compiler warning (error because of -Werror) with current GCC. --- diff --git a/debian/patches/bts559801_plugin_find_fix.dpatch b/debian/patches/bts559801_plugin_find_fix.dpatch index 129f3b5..a48f8c1 100755 --- a/debian/patches/bts559801_plugin_find_fix.dpatch +++ b/debian/patches/bts559801_plugin_find_fix.dpatch @@ -13,7 +13,23 @@ diff a/src/plugin.c b/src/plugin.c --- a/src/plugin.c +++ b/src/plugin.c -@@ -623,7 +623,7 @@ int plugin_load (const char *type) +@@ -592,7 +592,6 @@ + const char *dir; + char filename[BUFSIZE] = ""; + char typename[BUFSIZE]; +- int typename_len; + int ret; + struct stat statbuf; + struct dirent *de; +@@ -611,7 +610,6 @@ + WARNING ("snprintf: truncated: `%s.so'", type); + return (-1); + } +- typename_len = strlen (typename); + + if ((dh = opendir (dir)) == NULL) + { +@@ -623,7 +621,7 @@ while ((de = readdir (dh)) != NULL) {