* MAINTAINERS: Add myself to the write-after-approval list.
* ser-tcp.c (tcp_open): Use `localhost' as default host if no hostname is given.
This commit is contained in:
parent
962b3eada2
commit
ad4571f3f3
3 changed files with 10 additions and 0 deletions
|
@ -1,3 +1,9 @@
|
|||
2001-08-02 Corinna Vinschen <vinschen@redhat.com>
|
||||
|
||||
* MAINTAINERS: Add myself to the write-after-approval list.
|
||||
* ser-tcp.c (tcp_open): Use `localhost' as default host if no
|
||||
hostname is given.
|
||||
|
||||
2001-08-01 Andrew Cagney <ac131313@redhat.com>
|
||||
|
||||
* doublest.h (store_floating, floatformat_to_doublest): Make IN
|
||||
|
|
|
@ -353,6 +353,7 @@ David Smith dsmith@redhat.com
|
|||
Stephen P. Smith ischis2@home.com
|
||||
Gary Thomas gthomas@redhat.com
|
||||
Tom Tromey tromey@redhat.com
|
||||
Corinna Vinschen vinschen@redhat.com
|
||||
|
||||
|
||||
|
||||
|
|
|
@ -63,6 +63,9 @@ tcp_open (struct serial *scb, const char *name)
|
|||
hostname[tmp] = '\000'; /* Tie off host name */
|
||||
port = atoi (port_str + 1);
|
||||
|
||||
if (!hostname[0])
|
||||
strcpy (hostname, "localhost");
|
||||
|
||||
hostent = gethostbyname (hostname);
|
||||
|
||||
if (!hostent)
|
||||
|
|
Loading…
Add table
Reference in a new issue