diff --git a/Makefile b/Makefile index 1d45ada..9b23f01 100644 --- a/Makefile +++ b/Makefile @@ -3,7 +3,7 @@ GIT ?= git MASTODONT_DIR = mastodont-c/ MASTODONT = $(MASTODONT_DIR)libmastodont.a CFLAGS = -Wall -I $(MASTODONT_DIR)include/ -LDFLAGS = -L$(MASTODONT_DIR) -lcurl -lmastodont +LDFLAGS = -L$(MASTODONT_DIR) -lcurl -lmastodont -lcjson SRC = $(wildcard src/*.c) OBJ = $(patsubst %.c,%.o,$(SRC)) PAGES_DIR = static diff --git a/src/index.c b/src/index.c index b819414..542127a 100644 --- a/src/index.c +++ b/src/index.c @@ -25,7 +25,7 @@ void content_index(mastodont_t* api) { - struct mstdnt_response response; - mastodont_timeline_public(api, NULL, &response); + struct mstdnt_status* statuses; + mastodont_timeline_public(api, NULL, &statuses); printf(data_index_html, config_canonical_name); }