The fflush() argument is a pointer. Don't use 0 instead of NULL.
authorFabian Keil <fk@fabiankeil.de>
Mon, 8 Jun 2009 16:50:35 +0000 (16:50 +0000)
committerFabian Keil <fk@fabiankeil.de>
Mon, 8 Jun 2009 16:50:35 +0000 (16:50 +0000)
jcc.c

diff --git a/jcc.c b/jcc.c
index 42c42b4..121932c 100644 (file)
--- a/jcc.c
+++ b/jcc.c
@@ -1,4 +1,4 @@
-const char jcc_rcs[] = "$Id: jcc.c,v 1.251 2009/06/03 16:42:49 fabiankeil Exp $";
+const char jcc_rcs[] = "$Id: jcc.c,v 1.252 2009/06/08 16:48:50 fabiankeil Exp $";
 /*********************************************************************
  *
  * File        :  $Source: /cvsroot/ijbswa/current/jcc.c,v $
@@ -1819,7 +1819,7 @@ static void chat(struct client_state *csp)
        */
       if (FD_ISSET(csp->sfd, &rfds))
       {
-         fflush(0);
+         fflush(NULL);
          len = read_socket(csp->sfd, buf, sizeof(buf) - 1);
 
          if (len < 0)