X-Git-Url: http://git.bytex64.net/?a=blobdiff_plain;f=cgi%2Frss.c;h=c35e33bab479d9c5c486c3b180e16e30563d7537;hb=7d8ef1902ef3030991b50a9414116a0615ac49d9;hp=24133f63e4b855a184582f5949f429d963b249d3;hpb=213e6e64dd863fd39d0db7c6fb4ccf1970a868fb;p=blerg.git diff --git a/cgi/rss.c b/cgi/rss.c index 24133f6..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); @@ -18,14 +22,14 @@ int fprint_rss(FILE *f, const char *username) { int len; fprintf(f, - "\n" + "\n" "\n" "\n" "%s's blërg\n" "%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); }