command.c: Fix a bug in get_cmd_ptr().
[paraslash.git] / sdl_gui.c
index 6aa78546502f3359930abc4ef02113462a788db3..d30aad80529d32b76f3015da3452daae3fcca4fe 100644 (file)
--- 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;
 }
 
 /*