1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-14 10:09:48 +00:00

Sigh, too many late nights!

This commit is contained in:
Jordan K. Hubbard 1999-09-30 08:32:35 +00:00
parent 4c6fc7285e
commit 56373d38a8
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=51812
2 changed files with 2 additions and 2 deletions

View File

@ -391,7 +391,7 @@ tcpOpenDialog(Device *devp)
sprintf(temp, "inet %s %s netmask %s", ipaddr, extras, netmask);
variable_set2(ifn, temp, 1);
ifaces = variable_get(VAR_INTERFACES);
if (!ifaces || (ifaces && !strcmp(ifaces, "auto")))
if (!ifaces || !strcmp(ifaces, "auto"))
variable_set2(VAR_INTERFACES, ifaces = "lo0", 1);
/* Only add it if it's not there already */
if (!strstr(ifaces, devp->name)) {

View File

@ -391,7 +391,7 @@ tcpOpenDialog(Device *devp)
sprintf(temp, "inet %s %s netmask %s", ipaddr, extras, netmask);
variable_set2(ifn, temp, 1);
ifaces = variable_get(VAR_INTERFACES);
if (!ifaces || (ifaces && !strcmp(ifaces, "auto")))
if (!ifaces || !strcmp(ifaces, "auto"))
variable_set2(VAR_INTERFACES, ifaces = "lo0", 1);
/* Only add it if it's not there already */
if (!strstr(ifaces, devp->name)) {