]> Pileus Git - lackey/blobdiff - src/util.c
Move drawing code to screen.c, work on day view
[lackey] / src / util.c
index f13ad443c5f560418e5a30f4e27d4ad09abcebea..86bc3730701a21d2f5d1d4abc96a6929db769325 100644 (file)
@@ -21,6 +21,8 @@
 #include <string.h>
 #include <ncurses.h>
 
+#include "date.h"
+#include "event.h"
 #include "screen.h"
 
 /* Static data */
@@ -32,17 +34,6 @@ void util_init(void)
        debug_fd = fopen("/tmp/lackey.log", "w+");
 }
 
-/* Misc functions */
-char *sdup(const char *str)
-{
-       if (str == NULL)
-               return NULL;
-       int len = strlen(str);
-       char *dup = malloc(len+1);
-       memcpy(dup, str, len+1);
-       return dup;
-}
-
 /* Debugging functions */
 int debug(char *fmt, ...)
 {