Date: Mon, 1 Jun 2020 23:44:04 +0000 (UTC) From: "Simon J. Gerraty" <sjg@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r361710 - head/stand/uboot/lib Message-ID: <202006012344.051Ni4ix071788@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
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;
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202006012344.051Ni4ix071788>