Code

patches/bts559801_plugin_find_fix: Removed now unused variable as well.
authorSebastian Harl <sh@tokkee.org>
Mon, 9 Jan 2012 14:12:55 +0000 (15:12 +0100)
committerSebastian Harl <sh@tokkee.org>
Mon, 9 Jan 2012 14:12:55 +0000 (15:12 +0100)
Else, we'll get a compiler warning (error because of -Werror) with current
GCC.

debian/patches/bts559801_plugin_find_fix.dpatch

index 129f3b5a292509bc227b453a172ffd6035cc4b0e..a48f8c14e1cd7e02411a16e6006bdbf9563dc278 100755 (executable)
 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)
        {