commit e7a88685145d0159b407f9493a5ae579087e8b69
parent a74268dfabd7e99f83b4c94cb575e2f1423230fe
Author: Drew DeVault <sir@cmpwn.com>
Date: Wed, 5 Aug 2015 22:56:45 -0400
Make main.c less stupid
Diffstat:
1 file changed, 2 insertions(+), 5 deletions(-)
diff --git a/sway/main.c b/sway/main.c
@@ -6,7 +6,7 @@
struct sway_config *config;
-bool load_config() {
+void load_config() {
// TODO: Allow use of more config file locations
const char *name = "/.i3/config";
const char *home = getenv("HOME");
@@ -22,13 +22,10 @@ bool load_config() {
free(temp);
config = read_config(f);
fclose(f);
- return true;
}
int main(int argc, char **argv) {
- if (!load_config()) {
- return 0;
- }
+ load_config();
return 0;
static struct wlc_interface interface = { };