fix potential segfault in para_client
[paraslash.git] / error.h
diff --git a/error.h b/error.h
index 4b3cce28bf4f67b69d4d5abe8749a8d8e4846daa..c72bdae4fd12cc1df36f96f9ca9ba1678affb66a 100644 (file)
--- a/error.h
+++ b/error.h
@@ -135,11 +135,11 @@ extern const char **para_errlist[];
 #define GRAB_CLIENT_ERRORS \
        PARA_ERROR(PEDANTIC_GRAB, "fd not ready and pedantic grab requested"), \
        PARA_ERROR(GC_WRITE, "grab client write error"), \
-       PARA_ERROR(INVALID_GRAB_MODE, "invalid grab client mode"), \
        PARA_ERROR(BAD_GC_SLOT, "invalid slot requested by grab client"), \
        PARA_ERROR(BAD_GC_FILTER_NUM, "invalid filter number given"), \
        PARA_ERROR(GC_SYNTAX, "grab client syntax error"), \
        PARA_ERROR(GC_HELP_GIVEN, ""), /* not really an error */ \
+       PARA_ERROR(GC_VERSION_GIVEN, ""), /* not really an error */ \
 
 
 #define MP3DEC_ERRORS \
@@ -284,6 +284,7 @@ extern const char **para_errlist[];
 #define DCCP_SEND_ERRORS \
        PARA_ERROR(DCCP_BIND, "dccp bind error"), \
        PARA_ERROR(DCCP_LISTEN, "dccp listen error"), \
+       PARA_ERROR(DCCP_WRITE, "dccp write error"), \
 
 
 /* these do not need error handling (yet) */