From: Matthew Mondor Date: Wed, 25 Jun 2014 15:33:48 +0000 (+0000) Subject: Minor fixes X-Git-Url: http://git.pulsar-zone.net/?a=commitdiff_plain;h=87d312fbb0e3e212cf60e76843dee37544ae63eb;p=mmondor.git Minor fixes --- diff --git a/mmsoftware/mystic_ships/client/src/thread_net_recv.c b/mmsoftware/mystic_ships/client/src/thread_net_recv.c index 3f593e5..14346ee 100644 --- a/mmsoftware/mystic_ships/client/src/thread_net_recv.c +++ b/mmsoftware/mystic_ships/client/src/thread_net_recv.c @@ -1,4 +1,4 @@ -/* $Id: thread_net_recv.c,v 1.1 2006/12/31 08:32:39 mmondor Exp $ */ +/* $Id: thread_net_recv.c,v 1.2 2014/06/25 15:33:48 mmondor Exp $ */ /* * Copyright (c) 2006, Matthew Mondor @@ -19,6 +19,7 @@ #include #include #include +#include #include @@ -158,11 +159,8 @@ state_recv(void) */ while ((res = recvq_read(&recvq)) == 0) ; - if (res == -1) { - (void) fprintf(stderr, - "Connection with server lost\n"); - break; - } + if (res == -1) + screen_error("Lost server connection"); /* * res == 1. We therefore can fill our message and dispatch