diff options
author | pfg <pfg@FreeBSD.org> | 2016-05-12 01:19:11 +0000 |
---|---|---|
committer | pfg <pfg@FreeBSD.org> | 2016-05-12 01:19:11 +0000 |
commit | c0395e345d41ee0e301f8f3bc288202f5470abd4 (patch) | |
tree | 9538591918cd6ab35cf7688e918f946285af24f9 /sys/boot/common/interp_backslash.c | |
parent | b085e42af010174e13eeff51f0ace89eca34e8eb (diff) | |
download | FreeBSD-src-c0395e345d41ee0e301f8f3bc288202f5470abd4.zip FreeBSD-src-c0395e345d41ee0e301f8f3bc288202f5470abd4.tar.gz |
sys/boot/common: use of spaces vs. TAB.
No functional change.
Diffstat (limited to 'sys/boot/common/interp_backslash.c')
-rw-r--r-- | sys/boot/common/interp_backslash.c | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/sys/boot/common/interp_backslash.c b/sys/boot/common/interp_backslash.c index 3cbdd5b..09b8f57 100644 --- a/sys/boot/common/interp_backslash.c +++ b/sys/boot/common/interp_backslash.c @@ -21,7 +21,7 @@ __FBSDID("$FreeBSD$"); #include <string.h> #include "bootstrap.h" -#define DIGIT(x) (isdigit(x) ? (x) - '0' : islower(x) ? (x) + 10 - 'a' : (x) + 10 - 'A') +#define DIGIT(x) (isdigit(x) ? (x) - '0' : islower(x) ? (x) + 10 - 'a' : (x) + 10 - 'A') /* * backslash: Return malloc'd copy of str with all standard "backslash @@ -146,20 +146,20 @@ backslash(char *str) break; } } - else { - if (*str == '\\') { - seenbs = 1; - str++; - } + else { + if (*str == '\\') { + seenbs = 1; + str++; + } else new_str[i++] = *str++; - } + } } if (seenbs) { - /* - * The final character was a '\'. Put it in as a single backslash. - */ + /* + * The final character was a '\'. Put it in as a single backslash. + */ new_str[i++] = '\\'; } new_str[i] = '\0'; |