X-Git-Url: http://git.bytex64.net/?a=blobdiff_plain;f=cgi%2Frss.c;h=f143e5586dbbde4e8bd086cdaaa2b75f2538c1e3;hb=1a21466c7e3f8c18c4c35df56c270546ae8e6434;hp=173da0750b16926164123171152807854adb82b5;hpb=99e7a57d0a55241262dfac789049e57d960a8d56;p=blerg.git diff --git a/cgi/rss.c b/cgi/rss.c index 173da07..f143e55 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 @@ -87,18 +90,18 @@ int main (int argc, char *argv) { } ret = parse_url_info(path + 1, &info); - if ((ret & URL_INFO_AUTHOR) == 0) { + if ((ret & URL_INFO_NAME) == 0) { respond_404(); exit(0); } - if (!blerg_exists(info.author)) { + if (!blerg_exists(info.name)) { respond_404(); exit(0); } printf("Content-type: application/rss+xml\r\n\r\n"); - fprint_rss(stdout, info.author); + fprint_rss(stdout, info.name); }