From 9d438ddde25189b196f8d82da96ecc69276789b5 Mon Sep 17 00:00:00 2001 From: Sebastian Harl Date: Mon, 9 Jan 2012 15:12:55 +0100 Subject: [PATCH] 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. --- .../patches/bts559801_plugin_find_fix.dpatch | 18 +++++++++++++++++- 1 file changed, 17 insertions(+), 1 deletion(-) 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) { -- 2.30.2