From ee97d8648c80e696cb0aa6240641c4526278261f Mon Sep 17 00:00:00 2001 From: Jilles Tjoelker Date: Thu, 31 Dec 2015 18:56:11 +0000 Subject: [PATCH] sh: Reindent expandmeta(). --- bin/sh/expand.c | 42 +++++++++++++++++++++--------------------- 1 file changed, 21 insertions(+), 21 deletions(-) diff --git a/bin/sh/expand.c b/bin/sh/expand.c index 70280a1b8e21..6d5819dc6509 100644 --- a/bin/sh/expand.c +++ b/bin/sh/expand.c @@ -1028,28 +1028,28 @@ expandmeta(char *pattern, struct arglist *dstlist) int firstmatch; char c; - firstmatch = dstlist->count; - p = pattern; - for (; (c = *p) != '\0'; p++) { - /* fast check for meta chars */ - if (c == '*' || c == '?' || c == '[') { - INTOFF; - expmeta(expdir, pattern, dstlist); - INTON; - break; - } - } - if (dstlist->count == firstmatch) { - /* - * no matches - */ - rmescapes(pattern); - appendarglist(dstlist, pattern); - } else { - qsort(&dstlist->args[firstmatch], - dstlist->count - firstmatch, - sizeof(dstlist->args[0]), expsortcmp); + firstmatch = dstlist->count; + p = pattern; + for (; (c = *p) != '\0'; p++) { + /* fast check for meta chars */ + if (c == '*' || c == '?' || c == '[') { + INTOFF; + expmeta(expdir, pattern, dstlist); + INTON; + break; } + } + if (dstlist->count == firstmatch) { + /* + * no matches + */ + rmescapes(pattern); + appendarglist(dstlist, pattern); + } else { + qsort(&dstlist->args[firstmatch], + dstlist->count - firstmatch, + sizeof(dstlist->args[0]), expsortcmp); + } }