Commit Diff


commit - f19d991e099b0fc2253c7627cf76112d77a52c1d
commit + ac624049dae3226ab399c817c41f30d9f8f3962b
blob - 6ee632a3a99209e900ffae8bac8c1858e7beebd0
blob + 8abdc32cea411b2687eb4b998414668f2f6bb62c
--- FICS/formula.c
+++ FICS/formula.c
@@ -66,25 +66,25 @@
 
 extern player parray[];
 
-PRIVATE char *GetPlayersFormula (player *pWho, int clause)
+PRIVATE char *
+GetPlayersFormula(player *pWho, int clause)
 {
-  if (clause==MAX_FORMULA) return (pWho->formula);
-  else return (pWho->formulaLines[clause]);
+	if (clause == MAX_FORMULA)
+		return pWho->formula;
+	return pWho->formulaLines[clause];
 }
 
-/* In MoveIndexPastString, *i is treated as the index into string[];
-   this function returns 1 if the character string beginning with
-   string[*i] match *text, and 0 otherwise.  In the former case, *i
-   is incremented to move the index past *text.
-*/
-int MoveIndexPastString (char *string, int *i, char *text)
+int
+MoveIndexPastString(char *string, int *i, char *text)
 {
-  int n = strlen(text);
-  if (strncasecmp(text, string + *i, n)) return (0);
-  *i += n;
-  return (n);
-}    /* end of function MoveIndexPastString. */
+	int n = strlen(text);
 
+	if (strncasecmp(text, string + *i, n))
+		return 0;
+	*i += n;
+	return n;
+}
+
 int
 GetRating(player *p, int gametype)
 {