- 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 NOT_NUMBER\r\n";
+ case TTT_ERROR_NOT_GRID:
+ return "ERROR NOT_GRID\r\n";
+ case TTT_ERROR_NO_USER:
+ return "ERROR NO_USER\r\n";
+ case TTT_ERROR_NOT_IN_GAME:
+ return "ERROR_NOT_IN_GAME\r\n";
+ case TTT_ERROR_NOT_PLAYING:
+ return "ERROR_NOT_PLAYING\r\n";
+ case TTT_ERROR_NOT_YOUR_TURN:
+ return "ERROR NOT_YOUR_TURN\r\n";
+ /* Not an actual protocol errror, so this should never happen. */
+ case TTT_ERROR_QUIT_REQUESTED:
+ ASSERT_NOT_REACHED;
+ break;