Index: stoc.c
===================================================================
RCS file: /cvs/src/games/gomoku/stoc.c,v
retrieving revision 1.7
diff -N -u -p stoc.c
--- stoc.c      10 Jul 2003 00:03:01 -0000      1.7
+++ stoc.c      4 Jun 2009 01:54:38 -0000
@@ -61,45 +61,42 @@ static      struct  mvstr   mv[] = {
  * Turn the spot number form of a move into the character form.
  */
 char *
-stoc(s)
-       int s;
+stoc(int s)
 {
        static char buf[32];
        int i;

        for (i = 0; mv[i].m_code >= 0; i++)
                if (s == mv[i].m_code)
-                       return(mv[i].m_text);
+                       return (mv[i].m_text);
        snprintf(buf, sizeof buf, "%c%d", letters[s % BSZ1], s / BSZ1);
-       return(buf);
+       return (buf);
 }

 /*
  * Turn the character form of a move into the spot number form.
  */
 int
-ctos(mp)
-       char *mp;
+ctos(char *mp)
 {
        int i;

        for (i = 0; mv[i].m_code >= 0; i++)
                if (strcmp(mp, mv[i].m_text) == 0)
-                       return(mv[i].m_code);
+                       return (mv[i].m_code);
        if (!isalpha(mp[0]))
-               return(ILLEGAL);
+               return (ILLEGAL);
        i = atoi(&mp[1]);
        if (i < 1 || i > 19)
-               return(ILLEGAL);
-       return(PT(lton(mp[0]), i));
+               return (ILLEGAL);
+       return (PT(lton(mp[0]), i));
 }

 /*
  * Turn a letter into a number.
  */
 int
-lton(c)
-       int c;
+lton(int c)
 {
        int i;

@@ -107,5 +104,5 @@ lton(c)
                c = toupper(c);
        for (i = 1; i <= BSZ && letters[i] != c; i++)
                ;
-       return(i);
+       return (i);
 }

Reply via email to