]> Dogcows Code - chaz/tar/commitdiff
Minor change.
authorSergey Poznyakoff <gray@gnu.org.ua>
Fri, 16 Aug 2013 11:29:51 +0000 (14:29 +0300)
committerSergey Poznyakoff <gray@gnu.org.ua>
Fri, 16 Aug 2013 11:29:51 +0000 (14:29 +0300)
* src/names.c (name_next_elt): Simplify conditional.

src/names.c

index 6c9c3e9265a7793326c3a50b478cf2e4aee64c93..e3fbf7b7027044967e9307ff01208fdab14e8117 100644 (file)
@@ -510,15 +510,14 @@ name_next_elt (int change_dirs)
       struct name_elt *ep;
 
       ep = &name_array[scanned];
-      if (ep->type == NELT_FMASK)
+
+      switch (ep->type)
        {
+       case NELT_FMASK:
          matching_flags = ep->v.matching_flags;
          ++scanned;
          continue;
-       }
-
-      switch (ep->type)
-       {
+         
        case NELT_FILE:
          if (read_next_name (ep, &entry) == 0)
            return &entry;
This page took 0.022478 seconds and 4 git commands to generate.