[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Typos in start_tcp_server

From: John David Anglin
Subject: Typos in start_tcp_server
Date: Wed, 2 Jan 2002 12:30:33 -0500 (EST)

The following build error occured with cvs-1.11.1p1:

source='../../src/client.c' object='client.o' libtool=no \
depfile='.deps/client.Po' tmpdepfile='.deps/client.TPo' \
depmode=gcc3 /bin/sh ../../depcomp \
gcc -DHAVE_CONFIG_H -I. -I../../src -I.. -I. -I../../lib -I../../diff 
-I../../zlib     -O2 -c -o client.o `test -f ../../src/client.c || echo 
../../src/client.c: In function `start_tcp_server':
../../src/client.c:4120: `client_sai' undeclared (first use in this function)
../../src/client.c:4120: (Each undeclared identifier is reported only once
../../src/client.c:4120: for each function it appears in.)

I am sure this must be a known problem but here is a fix:

J. David Anglin                                  dave.anglin@nrc.ca
National Research Council of Canada              (613) 990-0752 (FAX: 952-6605)

2002-01-02  John David Anglin  <dave@hiauly1.hia.nrc.ca>

        * start_tcp_server: Correct typos.

--- client.c.orig       Tue Apr 24 14:14:53 2001
+++ client.c    Wed Jan  2 11:51:55 2002
@@ -4117,13 +4117,13 @@
        fprintf (stderr, " -> Connecting to %s(%s):%d\n",
-                inet_ntoa (client_sai.sin_addr), port);
+                inet_ntoa (sin.sin_addr), port);
     if (connect (s, (struct sockaddr *) &sin, sizeof sin) < 0)
        error (1, 0, "connect to %s(%s):%d failed: %s",
-              inet_ntoa (client_sai.sin_addr),
+              inet_ntoa (sin.sin_addr),
               port, SOCK_STRERROR (SOCK_ERRNO));

reply via email to

[Prev in Thread] Current Thread [Next in Thread]