- return "ERROR SYNTAX\n";
- case TTT_ERROR_NOTNUMBER:
- return "ERROR NOTNUMBER\n";
- case TTT_ERROR_NOTGRID:
- return "ERROR NOTGRID\n";
- case TTT_ERROR_NOUSER:
- return "ERROR NOUSER\n";
- case TTT_ERROR_NOTINGAME:
- return "ERROR_NOTINGAME\n";
- case TTT_ERROR_NOTPLAYING:
- return "ERROR_NOTPLAYING\n";
- case TTT_ERROR_NOTYOURTURN:
- return "ERROR NOTYOURTURN\n";
+ return "ERROR SYNTAX\r\n";
+ case TTT_ERROR_NOT_NUMBER:
+ return "ERROR NOTNUMBER\r\n";
+ case TTT_ERROR_NOT_GRID:
+ return "ERROR NOTGRID\r\n";
+ case TTT_ERROR_NO_USER:
+ return "ERROR NOUSER\r\n";
+ case TTT_ERROR_NOT_IN_GAME:
+ return "ERROR_NOTINGAME\r\n";
+ case TTT_ERROR_NOT_PLAYING:
+ return "ERROR_NOTPLAYING\r\n";
+ case TTT_ERROR_NOT_YOUR_TURN:
+ return "ERROR NOTYOURTURN\r\n";
+ /* Not an actual protocol errror, so this should never happen. */
+ case TTT_ERROR_QUIT_REQUESTED:
+ ASSERT_NOT_REACHED;
+ break;