X-Git-Url: http://git.bytex64.net/?a=blobdiff_plain;ds=sidebyside;f=cgi%2Fcgi_blerg.c;fp=cgi%2Fcgi_blerg.c;h=c004a7d05a87ac9fca2ed9fe5e2ce9f89c7eabdb;hb=ec8746b44dc85fd3e3b42835f779890684a9e90a;hp=b6dcb3ab1c2f1305a4f5258fc693f8ffa8793a85;hpb=dead5bdc521b34c85256737b616f4072a78dc2fb;p=blerg.git diff --git a/cgi/cgi_blerg.c b/cgi/cgi_blerg.c index b6dcb3a..c004a7d 100644 --- a/cgi/cgi_blerg.c +++ b/cgi/cgi_blerg.c @@ -45,7 +45,7 @@ void respond_for_range(struct blerg *b, uint64_t from, uint64_t to) { yajl_gen_free(g); } -void respond_taglist(struct tag *results, int i) { +void respond_blergref_list(struct blergref * results, int i) { const unsigned char *ybuf; unsigned int len; struct blerg *b; @@ -170,12 +170,12 @@ int main(int argc, char *argv[]) { } int recs = 50; - struct tag *taglist = tag_list(info.name, 0, &recs, -1); + struct blergref *taglist = tag_list(info.name, 0, &recs, -1); if (recs == 0) { respond_simple_data("[]", 2); } else { - respond_taglist(taglist, recs); + respond_blergref_list(taglist, recs); } } else if (strncmp(path, "/put", 4) == 0) { if (strcmp(request_method, "POST") != 0) {