diff Wnn/jserver/de.c @ 27:6bfa7ea3b75b

- resolved conflict between pointer and int - more warning suppression
author Yoshiki Yazawa <yaz@honeyplanet.jp>
date Sat, 06 Mar 2010 18:29:27 +0900
parents 466fe6732d8d
children
line wrap: on
line diff
--- a/Wnn/jserver/de.c	Sat Mar 06 07:58:49 2010 +0900
+++ b/Wnn/jserver/de.c	Sat Mar 06 18:29:27 2010 +0900
@@ -28,7 +28,6 @@
 /*
         Jserver         (Nihongo Daemon)
 */
-static char rcs_id[] = "$Id: de.c,v 1.36 2004/06/18 16:32:41 hiroo Exp $";
 
 #if defined(HAVE_CONFIG_H)
 #  include <config.h>
@@ -216,7 +215,6 @@
 int
 main (int argc, char *argv[])
 {
-  int tmpttyfd;
   char *cswidth_name;
   extern char *get_cswidth_name ();
   extern void set_cswidth ();
@@ -323,7 +321,8 @@
 #  define TIOCNOTTY     _IO('t', 113)
 # endif /* !defined(TIOCNOTTY) && defined(SVR4) */
 #ifndef HITACHI
-      if ((tmpttyfd = open ("/dev/tty", O_RDWR)) >= 0)
+	int tmpttyfd;
+	if ((tmpttyfd = open ("/dev/tty", O_RDWR)) >= 0)
 	{
 	  ioctl (tmpttyfd, TIOCNOTTY, 0);
 	  close (tmpttyfd);
@@ -1178,14 +1177,12 @@
 get_options (int argc, char **argv)
 {
   int c;
-  int digit_optind = 0;
 
   strcpy (jserverrcfile, LIBDIR);       /* usr/local/lib/wnn */
   strcat (jserverrcfile, SERVER_INIT_FILE);     /* ja_JP/jserverrc */
 
   while (1)
     {
-      int this_option_optind = optind ? optind : 1;
       int option_index = 0;
       static struct option long_options[] =
       {