--- deliantra/server/server/commands.C 2006/12/11 02:54:57 1.17 +++ deliantra/server/server/commands.C 2006/12/11 22:56:57 1.18 @@ -114,7 +114,6 @@ {"southwest", command_southwest, 1.0}, {"northwest", command_northwest, 1.0}, }; - const int CommandsSize = sizeof (Commands) / sizeof (CommArray_s); CommArray_s CommunicationCommands[] = { @@ -178,7 +177,6 @@ {"orcknuckle", command_orcknuckle, 0.0}, {"printlos", command_printlos, 0.0}, }; - const int CommunicationCommandSize = sizeof (CommunicationCommands) / sizeof (CommArray_s); CommArray_s NewServerCommands[] = { @@ -187,7 +185,6 @@ {"fire", command_fire, 1.0}, {"fire_stop", command_fire_stop, 0.0}, }; - const int NewServerCommandSize = sizeof (NewServerCommands) / sizeof (CommArray_s); /* @@ -254,24 +251,19 @@ {"players", command_players, 0.0}, {"version", command_version, 0.0}, }; - const int Socket_CommandsSize = sizeof (Socket_Commands) / sizeof (CommArray_s); - /* Socket commands - these should really do nothing more than output things * to the various players/sockets. */ CommArray_s Socket2_Commands[] = { }; - const int Socket2_CommandsSize = sizeof (Socket2_Commands) / sizeof (CommArray_s); - - static int compare_A (const void *a, const void *b) { - return strcmp (((CommArray_s *) a)->name, ((CommArray_s *) b)->name); + return strcmp (((CommArray_s *)a)->name, ((CommArray_s *)b)->name); } void