diff --git a/asana/fetch.c b/asana/fetch.c index 6b5d6c1..b17446e 100644 --- a/asana/fetch.c +++ b/asana/fetch.c @@ -16,7 +16,8 @@ bool asana_init(char *pat) { curl = curl_easy_init(); if (!curl) return false; - snprintf(asana_auth_header_str, AUTH_HEADER_SIZE, "Authorization: Bearer %s", pat); + snprintf(asana_auth_header_str, AUTH_HEADER_SIZE, "Authorization: Bearer %s", + pat); asana_auth_header = curl_slist_append(NULL, asana_auth_header_str); if (!asana_auth_header) return false; @@ -30,7 +31,8 @@ void asana_cleanup() { curl_global_cleanup(); } -size_t asana_write_callback(void *contents, size_t size, size_t nmemb, void *resp) { +size_t asana_write_callback(void *contents, size_t size, size_t nmemb, + void *resp) { Response *response = (Response *)resp; size_t realsize = size * nmemb; @@ -72,4 +74,3 @@ void asana_free_response(Response *r) { free(r->body); free(r); } - diff --git a/ncac.c b/ncac.c index f1165bf..1f60bd8 100644 --- a/ncac.c +++ b/ncac.c @@ -1,13 +1,12 @@ #include "ncac.h" #include -#include #include +#include #include -#include "ui/base.h" #include "asana/fetch.h" - +#include "ui/base.h" int main(int argc, char **argv) { setup(); @@ -17,7 +16,7 @@ int main(int argc, char **argv) { char input; - while(1) { + while (1) { switch (input = getch()) { case 'a': draw_text("Hello, world!", &curs_x, &curs_y); diff --git a/ui/base.c b/ui/base.c index 3ea99c0..eeef1dd 100644 --- a/ui/base.c +++ b/ui/base.c @@ -3,7 +3,6 @@ #include #include - void draw_text(char *text, int *x, int *y) { if (!text || strnlen(text, 1) == 0) return;