X-Git-Url: http://git.tuebingen.mpg.de/?p=paraslash.git;a=blobdiff_plain;f=sdl_gui.c;h=d30aad80529d32b76f3015da3452daae3fcca4fe;hp=6aa78546502f3359930abc4ef02113462a788db3;hb=024a12e75bea8695a02e2abb43eb0d77cb04f144;hpb=8dffec19598a4a0ed77fa082abaf52c8fe66d889 diff --git a/sdl_gui.c b/sdl_gui.c index 6aa78546..d30aad80 100644 --- a/sdl_gui.c +++ b/sdl_gui.c @@ -7,7 +7,7 @@ /** \file sdl_gui.c SDL-based interface for paraslash */ #include "para.h" -#include "string.h" +#include "gui_common.h" #include "fd.h" @@ -660,17 +660,18 @@ static void do_update(int i) * Check if buf is a known status line. If so call do_update and return 1. * Return 0 otherwise. */ -void update_status(char *buf) +int update_status(char *buf, __a_unused void *data) { int i; i = stat_line_valid(buf); if (i < 0) - return; + return 1; //free(stat_items[i].content); stat_items[i].content = para_strdup(buf + strlen(status_item_list[i]) + 1); do_update(i); + return 1; } /*