svn commit: r361710 - head/stand/uboot/lib
Simon J. Gerraty
sjg at FreeBSD.org
Mon Jun 1 23:44:04 UTC 2020
Author: sjg
Date: Mon Jun 1 23:44:03 2020
New Revision: 361710
URL: https://svnweb.freebsd.org/changeset/base/361710
Log:
stand/uboot: fix setting of gateip.s_addr
Missplaced paren.
Reviewed by: imp
MFC after: 1 week
Modified:
head/stand/uboot/lib/net.c
Modified: head/stand/uboot/lib/net.c
==============================================================================
--- head/stand/uboot/lib/net.c Mon Jun 1 23:26:37 2020 (r361709)
+++ head/stand/uboot/lib/net.c Mon Jun 1 23:44:03 2020 (r361710)
@@ -187,7 +187,7 @@ get_env_net_params()
rootip.s_addr = 0;
return;
}
- if ((gateip.s_addr = inet_addr(envstr) == INADDR_NONE)) {
+ if ((gateip.s_addr = inet_addr(envstr)) == INADDR_NONE) {
printf("Could not parse gatewayip '%s'\n", envstr);
rootip.s_addr = 0;
return;
More information about the svn-src-all
mailing list