From: Jan Rękorajski Date: Mon, 15 Sep 2014 19:39:35 +0000 (+0200) Subject: - new function must be static due to -Wstrict-prototypes X-Git-Tag: auto/th/xchat-gnome-0.26.1-3~1 X-Git-Url: https://git.pld-linux.org/?a=commitdiff_plain;ds=sidebyside;h=12d6f9562528b8c0df968098ee65a962e1e9141e;p=packages%2Fxchat-gnome.git - new function must be static due to -Wstrict-prototypes --- diff --git a/xchat-gnome-long-delimiter.patch b/xchat-gnome-long-delimiter.patch index 792ffa0..8499705 100644 --- a/xchat-gnome-long-delimiter.patch +++ b/xchat-gnome-long-delimiter.patch @@ -8,7 +8,7 @@ diff -urN xchat-gnome-0.24.0/src/fe-gnome/xtext.c xchat-gnome-0.24.0.new/src/fe- -#define is_del(c) \ - (c == ' ' || c == '\n' || c == ')' || c == '(' || \ - c == '>' || c == '<' || c == ATTR_RESET || c == ATTR_BOLD || c == 0) -+int is_del(const char *c) { ++static int is_del(const char *c) { + int ret; + ret = 0; + ret = (c[0] == ' ' || c[0] == '\n' || c[0] == ')' || c[0] == '(' ||