]> git.cameronkatri.com Git - cgit.git/blobdiff - ui-atom.c
ui-stats: make cgit_period definitions 'static const'
[cgit.git] / ui-atom.c
index 2a1eb595314248a364d9cedc1efdf5bf5db3e60d..e2b39ee1d1c51cb109e69dc65b26feefe866d76d 100644 (file)
--- a/ui-atom.c
+++ b/ui-atom.c
@@ -1,6 +1,6 @@
 /* ui-atom.c: functions for atom feeds
  *
- * Copyright (C) 2008 Lars Hjemli
+ * Copyright (C) 2006-2014 cgit Development Team <cgit@lists.zx2c4.com>
  *
  * Licensed under GNU General Public License v2
  *   (see COPYING for full license text)
@@ -108,7 +108,7 @@ void cgit_print_atom(char *tip, char *path, int max_count)
        host = cgit_hosturl();
        ctx.page.mimetype = "text/xml";
        ctx.page.charset = "utf-8";
-       cgit_print_http_headers(&ctx);
+       cgit_print_http_headers();
        html("<feed xmlns='http://www.w3.org/2005/Atom'>\n");
        html("<title>");
        html_txt(ctx.repo->name);
@@ -133,8 +133,7 @@ void cgit_print_atom(char *tip, char *path, int max_count)
        }
        while ((commit = get_revision(&rev)) != NULL) {
                add_entry(commit, host);
-               free(commit->buffer);
-               commit->buffer = NULL;
+               free_commit_buffer(commit);
                free_commit_list(commit->parents);
                commit->parents = NULL;
        }