X-Git-Url: http://git.bytex64.net/?a=blobdiff_plain;f=cgi%2Frss.c;h=c35e33bab479d9c5c486c3b180e16e30563d7537;hb=7d8ef1902ef3030991b50a9414116a0615ac49d9;hp=1506b819f1a87573ce45850e6347534a51dbff16;hpb=47813df4231604c941e960fb7275cf6bb02802d2;p=blerg.git diff --git a/cgi/rss.c b/cgi/rss.c index 1506b81..c35e33b 100644 --- a/cgi/rss.c +++ b/cgi/rss.c @@ -1,3 +1,6 @@ +/* Blerg is (C) 2011 The Dominion of Awesome, and is distributed under a + * BSD-style license. Please see the COPYING file for details. + */ #include #include #include @@ -6,6 +9,7 @@ #include "escapery.h" #include "canned_responses.h" #include "app.h" +#include "config.h" int fprint_rss(FILE *f, const char *username) { struct blerg *b = blerg_open(username); @@ -25,7 +29,7 @@ int fprint_rss(FILE *f, const char *username) { "%s#%s\n" "%s\n", username, - "http://blerg.dominionfawesome.com/", + BASEURL, username, "Textual vomit" ); @@ -38,9 +42,11 @@ int fprint_rss(FILE *f, const char *username) { fprintf(f, "\n" "%s\n" + "%sget/%s/%llu\n" "%s\n" "\n", date, + BASEURL, username, i, tmp ); free(tmp); @@ -96,6 +102,6 @@ int main (int argc, char *argv) { printf("Content-type: application/rss+xml\r\n\r\n"); - fprint_rss(stdout, "chip"); + fprint_rss(stdout, info.author); }