summaryrefslogtreecommitdiff
path: root/sway/config.c
diff options
context:
space:
mode:
authortaiyu <[email protected]>2015-08-18 03:22:31 -0700
committertaiyu <[email protected]>2015-08-18 03:22:31 -0700
commitabd0afb03a2929931cb684e5aaeac312affe6e5f (patch)
tree5c019b8f9d3285453a8fa101e0400e6c484fffc6 /sway/config.c
parente9c3a9016f1df5877404721043967431afb2f5c7 (diff)
enhanced whitespace remover
Diffstat (limited to 'sway/config.c')
-rw-r--r--sway/config.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/sway/config.c b/sway/config.c
index 44943769..bde65614 100644
--- a/sway/config.c
+++ b/sway/config.c
@@ -186,10 +186,9 @@ bool read_config(FILE *file, bool is_active) {
int temp_depth = 0; // Temporary: skip all config sections with depth
while (!feof(file)) {
- int _;
char *line = read_line(file);
- line = strip_comments(line);
- line = strip_whitespace(line, &_);
+ strip_comments(line);
+ strip_whitespace(line);
if (!line[0]) {
goto _continue;
}