From 4fa3359d44471cf301fe6755dd281a87304d5d01 Mon Sep 17 00:00:00 2001 From: John Bampton Date: Tue, 15 Dec 2020 19:34:01 +1000 Subject: refactor: remove trailing whitespace from C, Header, Ruby and YAML files Lint --- mrbgems/mruby-io/src/file.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'mrbgems/mruby-io/src') diff --git a/mrbgems/mruby-io/src/file.c b/mrbgems/mruby-io/src/file.c index d6db8140c..1704579cf 100644 --- a/mrbgems/mruby-io/src/file.c +++ b/mrbgems/mruby-io/src/file.c @@ -290,20 +290,20 @@ mrb_file__getwd(mrb_state *mrb, mrb_value klass) #define IS_DEVICEID(x) (x == '.' || x == '?') #define CHECK_UNCDEV_PATH (IS_FILESEP(path[0]) && IS_FILESEP(path[1])) -static int +static int is_absolute_traditional_path(const char *path, size_t len) { if (len < 3) return 0; return (ISALPHA(path[0]) && IS_VOLSEP(path[1]) && IS_FILESEP(path[2])); } -static int +static int is_aboslute_unc_path(const char *path, size_t len) { if (len < 2) return 0; return (CHECK_UNCDEV_PATH && !IS_DEVICEID(path[2])); } -static int +static int is_absolute_device_path(const char *path, size_t len) { if (len < 4) return 0; return (CHECK_UNCDEV_PATH && IS_DEVICEID(path[2]) && IS_FILESEP(path[3])); @@ -316,8 +316,8 @@ mrb_file_is_absolute_path(const char *path) if (IS_FILESEP(path[0])) return 1; if (len > 0) return ( - is_absolute_traditional_path(path, len) || - is_aboslute_unc_path(path, len) || + is_absolute_traditional_path(path, len) || + is_aboslute_unc_path(path, len) || is_absolute_device_path(path, len) ); else -- cgit v1.2.3