From: Sergey Poznyakoff Date: Fri, 16 Aug 2013 11:29:51 +0000 (+0300) Subject: Minor change. X-Git-Url: https://git.dogcows.com/gitweb?a=commitdiff_plain;h=162bbcb45f93a516641ef26d2336bb2d877c7075;p=chaz%2Ftar Minor change. * src/names.c (name_next_elt): Simplify conditional. --- diff --git a/src/names.c b/src/names.c index 6c9c3e9..e3fbf7b 100644 --- a/src/names.c +++ b/src/names.c @@ -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;