diff --git a/Makefile b/Makefile index e6a9473..ba14270 100644 --- a/Makefile +++ b/Makefile @@ -9,7 +9,7 @@ BINDIR = $(PREFIX)/bin MANDIR = $(PREFIX)/share/man/man1 LDFLAGS != pkg-config --libs libcurl -CFLAGS = -O3 -march=native -mtune=native -pipe -s -std=c99 -pedantic -Wall +CFLAGS = -Os -march=native -mtune=native -pipe -s -std=c99 -pedantic -Wall -D_DEFAULT_SOURCE SRC = bob.c diff --git a/bob.c b/bob.c index e9d045c..84e8085 100644 --- a/bob.c +++ b/bob.c @@ -1,10 +1,10 @@ #include #include #include -#include #include -#include #include +#include +#include #include @@ -37,7 +37,7 @@ size_t write_data(void *ptr, size_t size, size_t nmemb, FILE *stream) return written; } -char *get_db_path() +char *get_db_path(void) { char *db_path = malloc(12); if (db_path == NULL) { @@ -229,7 +229,7 @@ void update_package(char *pkg) } } -char **search_index() +char **search_index(void) { long response_code; char temp_path[] = "/tmp/bob_index";