From 295cfcea7667d779cf8cd256bc02c277136e5834 Mon Sep 17 00:00:00 2001 From: Enno Boland Date: Tue, 13 May 2014 11:44:49 +0200 Subject: [PATCH] libxbps: insert space after conditionals --- lib/initend.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/lib/initend.c b/lib/initend.c index 40ef8c10..2e72314f 100644 --- a/lib/initend.c +++ b/lib/initend.c @@ -165,7 +165,7 @@ parse_files_glob(struct xbps_handle *xhp, const char *path, bool nested, bool vp glob(path, 0, NULL, &globbuf); for(i = 0; globbuf.gl_pathv[i]; i++) { - if((rv = parse_file(xhp, globbuf.gl_pathv[i], nested, vpkgconf)) != 0) + if ((rv = parse_file(xhp, globbuf.gl_pathv[i], nested, vpkgconf)) != 0) break; } globfree(&globbuf); @@ -197,12 +197,12 @@ parse_file(struct xbps_handle *xhp, const char *path, bool nested, bool vpkgconf /* cwd to the dir containing the config file */ strncpy(tmppath, path, sizeof(tmppath)); cwd = dirname(tmppath); - if(getcwd(ocwd, sizeof(ocwd)) == NULL) { + if (getcwd(ocwd, sizeof(ocwd)) == NULL) { rv = errno; xbps_dbg_printf(xhp, "cannot get cwd: %s\n", strerror(rv)); return rv; } - if(chdir(cwd)) { + if (chdir(cwd)) { rv = errno; xbps_dbg_printf(xhp, "cannot chdir to %s: %s\n", cwd, strerror(rv)); return rv; @@ -262,7 +262,7 @@ parse_file(struct xbps_handle *xhp, const char *path, bool nested, bool vpkgconf fclose(fp); /* Going back to old working directory */ - if(chdir(ocwd)) { + if (chdir(ocwd)) { rv = errno; xbps_dbg_printf(xhp, "cannot chdir to %s: %s\n", ocwd, strerror(rv)); return rv;