summaryrefslogtreecommitdiff
path: root/stand/uboot
diff options
context:
space:
mode:
authorSimon J. Gerraty <sjg@FreeBSD.org>2020-06-01 23:44:03 +0000
committerSimon J. Gerraty <sjg@FreeBSD.org>2020-06-01 23:44:03 +0000
commit7ea9eb9f7c82008b9f367578c75836db46e12a34 (patch)
treeaa9392de5c9cda142d2439058ef04032ae33b73d /stand/uboot
parent6697f577d1216a312dd6ed27aa30f8a5d0d587d4 (diff)
downloadsrc-test2-7ea9eb9f7c82008b9f367578c75836db46e12a34.tar.gz
src-test2-7ea9eb9f7c82008b9f367578c75836db46e12a34.zip
stand/uboot: fix setting of gateip.s_addr
Missplaced paren. Reviewed by: imp MFC after: 1 week
Notes
Notes: svn path=/head/; revision=361710
Diffstat (limited to 'stand/uboot')
-rw-r--r--stand/uboot/lib/net.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/stand/uboot/lib/net.c b/stand/uboot/lib/net.c
index 2e1b9ab4caa4..81b8c5bc9f5b 100644
--- a/stand/uboot/lib/net.c
+++ b/stand/uboot/lib/net.c
@@ -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;