]> git.tuebingen.mpg.de Git - paraslash.git/blobdiff - gui.c
Simplify the error subsystem, get rid of error2.[ch].
[paraslash.git] / gui.c
diff --git a/gui.c b/gui.c
index bb1625d795d6d4b1542758190fc3c30eb2ec2998..63afca07fd1839fa5626d3139edd4c7450e38647 100644 (file)
--- a/gui.c
+++ b/gui.c
@@ -26,8 +26,9 @@
 #include "ggo.h"
 #include "version.h"
 
-/** define the array of error lists needed by para_gui */
-INIT_GUI_ERRLISTS;
+/** Array of error strings. */
+DEFINE_PARA_ERRLIST;
+
 static char *stat_content[NUM_STAT_ITEMS];
 
 static struct gui_window {
@@ -146,7 +147,7 @@ struct exec_task {
        unsigned flags[2]; /* passed to for_each_line() */
 };
 
-static int find_cmd_byname(char *name)
+static int find_cmd_byname(const char *name)
 {
        int i;