cleanup
[ptask.git] / src / tw.c
index c03d026..33fbc94 100644 (file)
--- a/src/tw.c
+++ b/src/tw.c
 #include <stdlib.h>
 #include <string.h>
 
+#include <json/json.h>
+
 #include "note.h"
+#include "tw.h"
 
-char *task_exec(char *opts)
+static char *task_exec(char *opts)
 {
        FILE *f;
        int ret;
@@ -67,10 +70,6 @@ char *task_exec(char *opts)
        return str;
 }
 
-#include <json/json.h>
-
-#include "tw.h"
-
 static struct json_object *task_exec_json(char *opts)
 {
        struct json_object *o;