summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChris Johns <chrisj@rtems.org>2017-04-26 17:38:50 +1000
committerChris Johns <chrisj@rtems.org>2017-04-26 17:43:19 +1000
commit145a821cb853eab16746b361092efa9a0606463d (patch)
tree2ec3b53561636f5794015bb2af1dafb5a845e29f
parent334019da732c082bc80101129a0f8961f5efd8bf (diff)
downloadrtems-libbsd-145a821cb853eab16746b361092efa9a0606463d.tar.bz2
rc_conf: Minor clean up in the net services.
-rw-r--r--rtemsbsd/rtems/rtems-bsd-rc-conf-net.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/rtemsbsd/rtems/rtems-bsd-rc-conf-net.c b/rtemsbsd/rtems/rtems-bsd-rc-conf-net.c
index 67b18d1b..51768387 100644
--- a/rtemsbsd/rtems/rtems-bsd-rc-conf-net.c
+++ b/rtemsbsd/rtems/rtems-bsd-rc-conf-net.c
@@ -660,8 +660,9 @@ run_dhcp(rtems_bsd_rc_conf* rc_conf, rtems_bsd_rc_conf_argc_argv* aa)
--delay;
memset(&sin, 0, sizeof(sin));
+ memset(&rti_info[0], 0, sizeof(rti_info));
sin.sin_family = AF_INET;
- inet_pton(AF_INET, "0.0.0.0.", &sin.sin_addr);
+ inet_pton(AF_INET, "0.0.0.0", &sin.sin_addr);
r = rtems_get_route(&sin, rti_info);
if (r == 0 && rti_info[RTAX_GATEWAY] != NULL) {
@@ -722,7 +723,7 @@ network_service(rtems_bsd_rc_conf* rc_conf)
if (aa == NULL)
return -1;
- show_result("hostname", hostname(rc_conf, aa));
+ show_result("hostname", hostname(rc_conf, aa));
r = interfaces(rc_conf, aa);
if (r < 0) {