diff options
author | Sascha Hauer <s.hauer@pengutronix.de> | 2018-03-19 15:11:00 +0100 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2018-04-06 14:43:59 +0200 |
commit | 0afcc779a2b8aa1b9893ce2eff484750661d6045 (patch) | |
tree | 2dd0c9f80b9a40365ce954e3a1330092dd5c0c14 /fs | |
parent | 74e20630f23319f62b3aeb805dd1e444a5159725 (diff) | |
download | barebox-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>
Diffstat (limited to 'fs')
-rw-r--r-- | fs/fs.c | 26 |
1 files changed, 13 insertions, 13 deletions
@@ -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 = '/'; |