Mercurial > hg > xemacs-beta
comparison lib-src/gnuslib.c @ 647:b39c14581166
[xemacs-hg @ 2001-08-13 04:45:47 by ben]
removal of unsigned, size_t, etc.
author | ben |
---|---|
date | Mon, 13 Aug 2001 04:46:48 +0000 |
parents | 023b83f4e54b |
children | 2161ac78b41e |
comparison
equal
deleted
inserted
replaced
646:00c54252fe4f | 647:b39c14581166 |
---|---|
325 | 325 |
326 /* Set up the peer address to which we will connect. */ | 326 /* Set up the peer address to which we will connect. */ |
327 peeraddr_in.sin_family = AF_INET; | 327 peeraddr_in.sin_family = AF_INET; |
328 | 328 |
329 /* look up the server host's internet address */ | 329 /* look up the server host's internet address */ |
330 if ((peeraddr_in.sin_addr.s_addr = internet_addr(serverhost)) == -1) { | 330 if ((peeraddr_in.sin_addr.s_addr = internet_addr (serverhost)) == |
331 fprintf(stderr,"%s: unable to find %s in /etc/hosts or from YP\n", | 331 (unsigned int) -1) |
332 progname,serverhost); | 332 { |
333 exit(1); | 333 fprintf (stderr, "%s: unable to find %s in /etc/hosts or from YP\n", |
334 }; /* if */ | 334 progname, serverhost); |
335 exit(1); | |
336 } | |
335 | 337 |
336 if (port == 0) { | 338 if (port == 0) { |
337 if ((sp = getservbyname ("gnuserv","tcp")) == NULL) | 339 if ((sp = getservbyname ("gnuserv","tcp")) == NULL) |
338 peeraddr_in.sin_port = htons(DEFAULT_PORT+getuid()); | 340 peeraddr_in.sin_port = htons(DEFAULT_PORT+getuid()); |
339 else | 341 else |