diff options
author | Richard M. Stallman <rms@gnu.org> | 1993-01-08 21:14:13 +0000 |
---|---|---|
committer | Richard M. Stallman <rms@gnu.org> | 1993-01-08 21:14:13 +0000 |
commit | 04370267a29f77f57e8dee5941568da48415c11b (patch) | |
tree | ee16cd0e36f96d6635a258b1ca981b0fd28dba3d /manual/examples | |
parent | 20b8159fb4f839468471495051b21a8041885071 (diff) |
Break a line in `connect' call, to avoid mysterious error message.
Diffstat (limited to 'manual/examples')
-rw-r--r-- | manual/examples/inetcli.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/manual/examples/inetcli.c b/manual/examples/inetcli.c index 86547125c3..4b6811cad0 100644 --- a/manual/examples/inetcli.c +++ b/manual/examples/inetcli.c @@ -43,7 +43,8 @@ main (void) /* Connect to the server. */ init_sockaddr (&servername, SERVERHOST, PORT); - if (0 > connect (sock, (struct sockaddr *) &servername, + if (0 > connect (sock, + (struct sockaddr *) &servername, sizeof (servername))) { perror ("connect (client)"); |