cleanup
authorJean-Philippe Orsini <jeanfi@gmail.com>
Wed, 16 Oct 2013 08:21:43 +0000 (08:21 +0000)
committerJean-Philippe Orsini <jeanfi@gmail.com>
Wed, 16 Oct 2013 08:21:43 +0000 (08:21 +0000)
src/tw.c
src/tw.h

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;
index 74aacfd..e919095 100644 (file)
--- a/src/tw.h
+++ b/src/tw.h
@@ -38,7 +38,6 @@ void tw_done(const char *uuid);
 void tw_add(const char *newdesc);
 void tw_task_list_free(struct task **tasks);
 
-char *task_exec(char *opts);
 char *escape(const char *txt);
 
 #endif