svn commit: r292995 - head/bin/sh
Jilles Tjoelker
jilles at FreeBSD.org
Thu Dec 31 18:56:13 UTC 2015
Author: jilles
Date: Thu Dec 31 18:56:11 2015
New Revision: 292995
URL: https://svnweb.freebsd.org/changeset/base/292995
Log:
sh: Reindent expandmeta().
Modified:
head/bin/sh/expand.c
Modified: head/bin/sh/expand.c
==============================================================================
--- head/bin/sh/expand.c Thu Dec 31 18:47:54 2015 (r292994)
+++ head/bin/sh/expand.c Thu Dec 31 18:56:11 2015 (r292995)
@@ -1028,28 +1028,28 @@ expandmeta(char *pattern, struct arglist
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);
+ }
}
More information about the svn-src-head
mailing list