summaryrefslogtreecommitdiffstats
path: root/src/conf.c
diff options
context:
space:
mode:
authorGravatar Martin Szulecki2020-06-08 22:58:16 +0200
committerGravatar Martin Szulecki2020-06-08 22:58:16 +0200
commit71aa08fcf437309462644eb77dc0abbd00a7f874 (patch)
treefd13ffdeb867b40448fa0d650474bd0c083d38d4 /src/conf.c
parent080747cfacaefed9b3647fa5b38001942ac59d2a (diff)
downloadusbmuxd-71aa08fcf437309462644eb77dc0abbd00a7f874.tar.gz
usbmuxd-71aa08fcf437309462644eb77dc0abbd00a7f874.tar.bz2
Remove trailing whitespace errors from all files
Diffstat (limited to 'src/conf.c')
-rw-r--r--src/conf.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/conf.c b/src/conf.c
index db88e90..609d246 100644
--- a/src/conf.c
+++ b/src/conf.c
@@ -132,7 +132,7 @@ const char *config_get_config_dir()
132 __config_dir = string_concat(base_config_dir, DIR_SEP_S, CONFIG_DIR, NULL); 132 __config_dir = string_concat(base_config_dir, DIR_SEP_S, CONFIG_DIR, NULL);
133 133
134 if (__config_dir) { 134 if (__config_dir) {
135 int i = strlen(__config_dir)-1; 135 int i = strlen(__config_dir)-1;
136 while ((i > 0) && (__config_dir[i] == DIR_SEP)) { 136 while ((i > 0) && (__config_dir[i] == DIR_SEP)) {
137 __config_dir[i--] = '\0'; 137 __config_dir[i--] = '\0';
138 } 138 }
@@ -160,7 +160,7 @@ static int mkdir_with_parents(const char *dir, int mode)
160 if (__mkdir(dir, mode) == 0) { 160 if (__mkdir(dir, mode) == 0) {
161 return 0; 161 return 0;
162 } else { 162 } else {
163 if (errno == EEXIST) return 0; 163 if (errno == EEXIST) return 0;
164 } 164 }
165 int res; 165 int res;
166 char *parent = strdup(dir); 166 char *parent = strdup(dir);