From 9c7fe1d7cc56f5461e2cc88b18b1cbf769a125e0 Mon Sep 17 00:00:00 2001 From: Enno Rehling Date: Wed, 13 May 2015 13:12:46 +0200 Subject: [PATCH] fix gcc compilation and missing argument --- src/report.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/report.c b/src/report.c index 02549f084..44f3b0b91 100644 --- a/src/report.c +++ b/src/report.c @@ -559,10 +559,8 @@ void sparagraph(strlist ** SP, const char *s, int indent, char mark) } static void -nr_curses_i(stream *out, int indent, const faction *viewer, objtype_t typ, const void *obj, attrib *a) +nr_curses_i(stream *out, int indent, const faction *viewer, objtype_t typ, const void *obj, attrib *a, int self) { - int self = 0; - for (; a; a = a->next) { char buf[4096]; message *msg; @@ -662,7 +660,7 @@ static void nr_curses(stream *out, int indent, const faction *viewer, objtype_t log_error("get_attribs: invalid object type %d", typ); assert(!"invalid object type"); } - nr_curses_i(out, indent, viewer, typ, obj, a); + nr_curses_i(out, indent, viewer, typ, obj, a, self); } static void rps_nowrap(stream *out, const char *s)