From 2ec67c8ed1f88034fc0555542c3194686962ca4a Mon Sep 17 00:00:00 2001 From: Andy2 Date: Tue, 21 Sep 2010 06:26:49 -0700 Subject: [PATCH] finish rq to work with current format; add to makefile --- xwords4/relay/Makefile | 2 +- xwords4/relay/rq.c | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/xwords4/relay/Makefile b/xwords4/relay/Makefile index b30821e05..7d4e94827 100644 --- a/xwords4/relay/Makefile +++ b/xwords4/relay/Makefile @@ -55,7 +55,7 @@ xwrelay: $(OBJ) rq: rq.c clean: - rm -f xwrelay $(OBJ) + rm -f xwrelay $(OBJ) rq tags: etags *.cpp *.h diff --git a/xwords4/relay/rq.c b/xwords4/relay/rq.c index 3c46b8f9b..201de62c1 100644 --- a/xwords4/relay/rq.c +++ b/xwords4/relay/rq.c @@ -70,7 +70,7 @@ do_rooms( int sockfd, int lang, int nPlayers ) write( sockfd, &len, sizeof(len) ); write( sockfd, msg, sizeof(msg) ); - fprintf( stderr, "Waiting for response...." ); + fprintf( stderr, "Waiting for response....\n" ); ssize_t nRead = recv( sockfd, &len, sizeof(len), MSG_WAITALL ); assert( nRead == sizeof(len) ); @@ -89,7 +89,7 @@ do_rooms( int sockfd, int lang, int nPlayers ) char* saveptr; for ( ii = 0; ii < nRooms; ++ii ) { char* str = strtok_r( ptr, "\n", &saveptr ); - fprintf( stdout, "%s", str ); + fprintf( stdout, "%s\n", str ); ptr = NULL; } }