SHA256
1
0
forked from pool/fwnn
fwnn/FreeWnn-prototypes_msg.patch
Fuminobu Takeyama 9a14d50062 Accepting request 195772 from home:Mitsutoshi:branches:M17N
- Modify FreeWnn-prototypes_3.patch .
  I found a bug in make_hinsi_list() at Wnn/jserver/hinsi_list.c,
  then fixed it . 

- Add FreeWnn-prototypes_3.patch .
  Prototype declarations for reducing compilation warnings .

- Add FreeWnn-prototypes_msg.patch .
  Bugfix: In openSUSE 13.1 Milestone 3,
  uum could not get error messages .
  This issue's cause is that we forgot prototype declaration
  of msg_get() in Wnn/include/msg.h .
  Then I added "FreeWnn-prototypes_msg.patch" as %Patch15 .
  http://lists.opensuse.org/opensuse-ja/2013-08/msg00014.html
  http://sourceforge.jp/projects/freewnn/lists/archive/users/2013-August/000140.html
- I added %configure --with-libwrap option .
  The [jctk]server s were linked -lwrap .
  Then we can use /etc/hosts.allow /etc/hosts.deny .
- Degrade fix: In "FreeWnn-prototypes.patch",
  I invalidated the patch of "FreeWnn-sighandler.patch" .
  Then I deleted a wrong patch to "Wnn/jserver/de.c"
  from "FreeWnn-prototypes.patch" .
  http://sourceforge.jp/projects/freewnn/lists/archive/users/2013-August/000141.html
- Change: In "FreeWnn-sighandler.patch",
  I changed from _exit(-1) to _exit(255) .
  This change effects [jctk]server's exit status .

- SLE_11 and openSUSE 12.2 does not provide libwrap0,
  then I could not build FreeWnn on them .
  So, I deleted %configure --with-libwrap option

OBS-URL: https://build.opensuse.org/request/show/195772
OBS-URL: https://build.opensuse.org/package/show/M17N/fwnn?expand=0&rev=11
2013-08-21 14:26:34 +00:00

39 lines
1.3 KiB
Diff

From: Mitsutoshi NAKANO <bkbin005@rinku.zaq.ne.jp>
Date: 2013-08-09 09:51:15 +0900
Subject: input: prototype declarations for bugs about error messages .
References: http://lists.opensuse.org/opensuse-ja/2013-08/msg00014.html
Upstream: sent
Bugfix: In openSUSE 13.1 Milestone 3,
uum could not get error messages .
This issue's cause is that we forgot prototype declaration
of msg_get() in Wnn/include/msg.h .
Then I added "FreeWnn-prototypes_msg.patch" as %Patch15 .
http://lists.opensuse.org/opensuse-ja/2013-08/msg00014.html
http://sourceforge.jp/projects/freewnn/lists/archive/users/2013-August/000140.html
---
diff -r -u Wnn/include/msg.h /home/mitsutoshi/src/Wnn/include/msg.h
--- Wnn/include/msg.h 2013-08-09 08:34:01.169023491 +0900
+++ /home/mitsutoshi/src/Wnn/include/msg.h 2013-08-09 08:25:29.353137583 +0900
@@ -64,8 +64,14 @@
*/
#define DEF_LANG "ja"
-extern struct msg_cat *msg_open ();
-extern char *msg_get ();
-extern void msg_close ();
+#if __STDC__
+#define FRWNN_PARAMS(paramlist) paramlist
+#else
+#define FRWNN_PARAMS(paramlist) ()
+#endif
+
+extern struct msg_cat *msg_open FRWNN_PARAMS((char *, char *, char *));
+extern char *msg_get FRWNN_PARAMS((struct msg_cat *, int id, char *, register char *lang));
+extern void msg_close FRWNN_PARAMS((register struct msg_cat *));
#endif /* WNN_MSG_H */