src/server.c

changeset 64
4eda5df55f86
parent 60
0c50aac49e55
--- a/src/server.c	Wed Aug 29 13:45:13 2018 +0200
+++ b/src/server.c	Wed Aug 29 13:55:18 2018 +0200
@@ -69,7 +69,7 @@
     GameState continuegame;
     gamestate_init(&continuegame);
     if (settings->continuepgn) {
-        // preload PGN data before handshake
+        /* preload PGN data before handshake */
         FILE *pgnfile = fopen(settings->continuepgn, "r");
         if (pgnfile) {
             int result = read_pgn(pgnfile, &continuegame,
@@ -106,7 +106,7 @@
 
     int fd = server.client->fd;
     if (settings->continuepgn) {
-        // Continue game, send PGN data
+        /* Continue game, send PGN data */
         uint16_t mc = 0;
         MoveList *movelist = continuegame.movelist;
         while (movelist) {
@@ -133,7 +133,7 @@
         net_send_data(fd, NETCODE_PGNDATA, pgndata, pgndata_size);
         free(pgndata);
     } else {
-        // Start new game
+        /* Start new game */
         net_send_data(fd, NETCODE_GAMEINFO,
             &(settings->gameinfo), sizeof(GameInfo));
     }

mercurial