summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristoph Lohmann <20h@r-36.net>2015-10-13 21:48:38 +0200
committerChristoph Lohmann <20h@r-36.net>2015-10-13 21:48:38 +0200
commitc81fbbaf43535781cbc86904c361a57823b6de50 (patch)
treecb989ccbb16352b4caf5295ed96d9113f4a7afa5
parent8a898ec4dfc7068656681ec94a04f8ed3ebe3b2d (diff)
downloadsurf-c81fbbaf43535781cbc86904c361a57823b6de50.tar.gz
surf-c81fbbaf43535781cbc86904c361a57823b6de50.tar.bz2
surf-c81fbbaf43535781cbc86904c361a57823b6de50.zip
Style cleanup.
-rw-r--r--surf.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/surf.c b/surf.c
index cd43e41..0fae80b 100644
--- a/surf.c
+++ b/surf.c
@@ -273,7 +273,6 @@ buildfile(const char *path) {
fpath = g_build_filename(bpath, bname, NULL);
g_free(bname);
-
if(!(f = fopen(fpath, "a")))
die("Could not open file: %s\n", fpath);
@@ -310,7 +309,7 @@ buildpath(const char *path) {
}
/* creating directory */
- if (g_mkdir_with_parents(apath, 0700) < 0)
+ if(g_mkdir_with_parents(apath, 0700) < 0)
die("Could not access directory: %s\n", apath);
fpath = realpath(apath, NULL);