summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSascha Hauer <s.hauer@pengutronix.de>2018-03-19 15:11:00 +0100
committerSascha Hauer <s.hauer@pengutronix.de>2018-04-06 14:43:59 +0200
commit0afcc779a2b8aa1b9893ce2eff484750661d6045 (patch)
tree2dd0c9f80b9a40365ce954e3a1330092dd5c0c14
parent74e20630f23319f62b3aeb805dd1e444a5159725 (diff)
downloadbarebox-0afcc779a2b8aa1b9893ce2eff484750661d6045.tar.gz
barebox-0afcc779a2b8aa1b9893ce2eff484750661d6045.tar.xz
fs: Cleanup whitespace damage
fs.c has some whitespaces where there should be tabs. Fix it. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
-rw-r--r--fs/fs.c26
1 files changed, 13 insertions, 13 deletions
diff --git a/fs/fs.c b/fs/fs.c
index ca4fe70e15..92f336b821 100644
--- a/fs/fs.c
+++ b/fs/fs.c
@@ -99,13 +99,13 @@ char *normalise_path(const char *pathname)
slashes[0] = in = out = path;
- while (*in) {
- if(*in == '/') {
+ while (*in) {
+ if(*in == '/') {
slashes[sl++] = out;
- *out++ = *in++;
- while(*in == '/')
- in++;
- } else {
+ *out++ = *in++;
+ while(*in == '/')
+ in++;
+ } else {
if (*in == '.' && (*(in + 1) == '/' || !*(in + 1))) {
sl--;
if (sl < 0)
@@ -123,16 +123,16 @@ char *normalise_path(const char *pathname)
continue;
}
*out++ = *in++;
- }
- }
+ }
+ }
*out-- = 0;
- /*
- * Remove trailing slash
- */
- if (*out == '/')
- *out = 0;
+ /*
+ * Remove trailing slash
+ */
+ if (*out == '/')
+ *out = 0;
if (!*path) {
*path = '/';