summaryrefslogtreecommitdiff
path: root/dynotify.c
diff options
context:
space:
mode:
Diffstat (limited to 'dynotify.c')
-rw-r--r--dynotify.c18
1 files changed, 8 insertions, 10 deletions
diff --git a/dynotify.c b/dynotify.c
index db1868c..3839e35 100644
--- a/dynotify.c
+++ b/dynotify.c
@@ -24,16 +24,14 @@
// misc:
// /usr/lib/pkgconfig/libnotify.pc
-#include<stdlib.h>
-#include<string.h>
-#include<stdbool.h>
-#include<unistd.h>
-// MIT
-#include<curl/curl.h>
-// MIT
-#include<json-c/json.h>
-// LGPL2
-#include<libnotify/notify.h>
+#include<stdio.h> // for sprintf
+#include<stdbool.h> // for bool
+#include<stdlib.h> // for realloc
+#include<string.h> // for memcpy
+#include<unistd.h> // for sleep
+#include<curl/curl.h> // MIT
+#include<json-c/json.h> // MIT
+#include<libnotify/notify.h> //LGPL
#define DYROOM_ID_LEN 9
// utf-8 most chinese characters 3 bytes, my longest name currently is 2 chinese characters, 2*3=6, +1 for \0