]> git.ipfire.org Git - thirdparty/grub.git/commitdiff
* grub-core/commands/regexp.c (grub_cmd_regexp): Remove unused
authorSzymon Janc <szymon@janc.net.pl>
Tue, 30 Nov 2010 20:35:59 +0000 (21:35 +0100)
committerSzymon Janc <szymon@janc.net.pl>
Tue, 30 Nov 2010 20:35:59 +0000 (21:35 +0100)
variable.
* grub-core/commands/wildcard.c (match_files): Likewise.

ChangeLog
grub-core/commands/regexp.c
grub-core/commands/wildcard.c

index 33004a8c8c1cd165ba8d413b095bc306de8f0a84..4effc2ff4ac7b0ace08b195633a997b969b2f6bc 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2010-11-30  Szymon Janc <szymon@janc.net.pl>
+
+       * grub-core/commands/regexp.c (grub_cmd_regexp): Remove unused
+       variable.
+       * grub-core/commands/wildcard.c (match_files): Likewise.
+
 2010-11-30  Robert Millan  <rmh@gnu.org>
 
        * grub-core/loader/i386/bsd.c
index f27a147afe483e5bd538b7c137190a7abaa8ab01..83c0d8d43bf9df4ef6d71b4c09662c93f313ad8b 100644 (file)
@@ -87,7 +87,6 @@ set_matches (char **varnames, char *str, grub_size_t nmatches,
 static grub_err_t
 grub_cmd_regexp (grub_extcmd_context_t ctxt, int argc, char **args)
 {
-  int argn = 0;
   regex_t regex;
   int ret;
   grub_size_t s;
index 6eab333b3310a8a83d85808f41927bef9ec9a92c..32561abe6e58e21925a9dabb49ff5b41a63fae1e 100644 (file)
@@ -266,7 +266,6 @@ match_files (const char *prefix, const char *suffix, const char *end,
             const regex_t *regexp)
 {
   int i;
-  int error;
   char **files;
   unsigned nfile;
   char *dir;
@@ -440,8 +439,6 @@ wildcard_expand (const char *s, char ***strs)
 
          else if (*start == '/') /* no device part */
            {
-             char **r;
-             unsigned n;
              char *root;
              char *prefix;