diff options
| author | Jordan K. Hubbard <jkh@FreeBSD.org> | 1999-07-20 08:08:24 +0000 |
|---|---|---|
| committer | Jordan K. Hubbard <jkh@FreeBSD.org> | 1999-07-20 08:08:24 +0000 |
| commit | 2d0fba453ee64266486593dc07d41ab2c4045a07 (patch) | |
| tree | bf9b104bea8549730b84fe7b782cbf15535defd6 | |
| parent | 6aa3426ca9b6c1551022a46b5027cbc181978378 (diff) | |
Notes
| -rw-r--r-- | release/sysinstall/dhcp.c | 6 | ||||
| -rw-r--r-- | usr.sbin/sysinstall/dhcp.c | 6 |
2 files changed, 6 insertions, 6 deletions
diff --git a/release/sysinstall/dhcp.c b/release/sysinstall/dhcp.c index 0cbdaa85ba02..a23af9de364d 100644 --- a/release/sysinstall/dhcp.c +++ b/release/sysinstall/dhcp.c @@ -1,5 +1,5 @@ /* - * $Id$ + * $Id: dhcp.c,v 1.1 1999/07/19 10:06:17 jkh Exp $ * * Copyright (c) 1999 * C. Stone. All rights reserved. @@ -107,7 +107,7 @@ dhcpParseLeases(char *file, char *hostname, char *domain, char *nameserver, } state = P_STMTLINE; break; - + case P_STMTLINE: if (tempbuf[0] == ';') { state = P_STMT; @@ -127,7 +127,7 @@ dhcpParseLeases(char *file, char *hostname, char *domain, char *nameserver, else strcpy(optbuf, tempbuf); - if (!strcasecmp("server-name", optname)) { + if (!strcasecmp("host-name", optname)) { strcpy(hostname, optbuf); } else if (!strcasecmp("domain-name", optname)) { strcpy(domain, optbuf); diff --git a/usr.sbin/sysinstall/dhcp.c b/usr.sbin/sysinstall/dhcp.c index 0cbdaa85ba02..a23af9de364d 100644 --- a/usr.sbin/sysinstall/dhcp.c +++ b/usr.sbin/sysinstall/dhcp.c @@ -1,5 +1,5 @@ /* - * $Id$ + * $Id: dhcp.c,v 1.1 1999/07/19 10:06:17 jkh Exp $ * * Copyright (c) 1999 * C. Stone. All rights reserved. @@ -107,7 +107,7 @@ dhcpParseLeases(char *file, char *hostname, char *domain, char *nameserver, } state = P_STMTLINE; break; - + case P_STMTLINE: if (tempbuf[0] == ';') { state = P_STMT; @@ -127,7 +127,7 @@ dhcpParseLeases(char *file, char *hostname, char *domain, char *nameserver, else strcpy(optbuf, tempbuf); - if (!strcasecmp("server-name", optname)) { + if (!strcasecmp("host-name", optname)) { strcpy(hostname, optbuf); } else if (!strcasecmp("domain-name", optname)) { strcpy(domain, optbuf); |
