From: Jean-Philippe Orsini Date: Wed, 16 Oct 2013 08:21:43 +0000 (+0000) Subject: cleanup X-Git-Tag: v0.0.6~113 X-Git-Url: http://git.wpitchoune.net/gitweb/?p=ptask.git;a=commitdiff_plain;h=739994b70d2715ae5961f5c42896d655a733595e cleanup --- diff --git a/src/tw.c b/src/tw.c index c03d026..33fbc94 100644 --- a/src/tw.c +++ b/src/tw.c @@ -21,9 +21,12 @@ #include #include +#include + #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 - -#include "tw.h" - static struct json_object *task_exec_json(char *opts) { struct json_object *o; diff --git a/src/tw.h b/src/tw.h index 74aacfd..e919095 100644 --- 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