X-Git-Url: https://gitweb.ps.run/ps-cgit/blobdiff_plain/996f86e664ab6d00a9304a42374e9c691b78ca6b..30304d8156a72ffc95e45e1aa9407319b81bd253:/ui-atom.c diff --git a/ui-atom.c b/ui-atom.c index 1554088..e2b39ee 100644 --- a/ui-atom.c +++ b/ui-atom.c @@ -1,12 +1,13 @@ /* ui-atom.c: functions for atom feeds * - * Copyright (C) 2008 Lars Hjemli + * Copyright (C) 2006-2014 cgit Development Team * * Licensed under GNU General Public License v2 * (see COPYING for full license text) */ #include "cgit.h" +#include "ui-atom.h" #include "html.h" #include "ui-shared.h" @@ -107,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("\n"); html(""); html_txt(ctx.repo->name); @@ -132,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; }