aboutsummaryrefslogtreecommitdiff
path: root/main.c
diff options
context:
space:
mode:
Diffstat (limited to 'main.c')
-rw-r--r--main.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/main.c b/main.c
index a4f9add..9959657 100644
--- a/main.c
+++ b/main.c
@@ -23,13 +23,6 @@
app_t app;
-void cleanup() {
- static int in = 0;
-
- if (!in++)
- app_quit(&app);
-}
-
int main(int argc, char **argv) {
// TODO: parse cmd line arguments properly
@@ -42,3 +35,10 @@ int main(int argc, char **argv) {
return 0;
}
+
+void cleanup() {
+ static int in = 0;
+
+ if (!in++)
+ app_quit(&app);
+}