summaryrefslogtreecommitdiffstats
path: root/mdk-stage1
diff options
context:
space:
mode:
authorThierry Vignaud <thierry.vignaud@gmail.com>2013-08-30 01:13:38 +0200
committerThierry Vignaud <thierry.vignaud@gmail.com>2013-08-30 01:16:48 +0200
commite9a030a7951295f2c18da0d10d6257a4a034a017 (patch)
tree042d439478146639b72c61e7b03379b583d43a8d /mdk-stage1
parent7a82a8cc9970268f3c94ca1d74356a174e525a99 (diff)
downloaddrakx-e9a030a7951295f2c18da0d10d6257a4a034a017.tar
drakx-e9a030a7951295f2c18da0d10d6257a4a034a017.tar.gz
drakx-e9a030a7951295f2c18da0d10d6257a4a034a017.tar.bz2
drakx-e9a030a7951295f2c18da0d10d6257a4a034a017.tar.xz
drakx-e9a030a7951295f2c18da0d10d6257a4a034a017.zip
fix invalid usage of memset()
spot by gcc-4.8 introduced by Guillaume Cottenceau on Jan 8 2001 ("add dhcp")
Diffstat (limited to 'mdk-stage1')
-rw-r--r--mdk-stage1/NEWS2
-rw-r--r--mdk-stage1/dhcp.c2
2 files changed, 3 insertions, 1 deletions
diff --git a/mdk-stage1/NEWS b/mdk-stage1/NEWS
index da824352a..8b421ebb4 100644
--- a/mdk-stage1/NEWS
+++ b/mdk-stage1/NEWS
@@ -1,3 +1,5 @@
+- fix compiling with gcc-4.8
+
1.78
- probe virtual drivers too (mga#9546)
(install from Xen hd not supported yet)
diff --git a/mdk-stage1/dhcp.c b/mdk-stage1/dhcp.c
index a4cc07446..77f8f356b 100644
--- a/mdk-stage1/dhcp.c
+++ b/mdk-stage1/dhcp.c
@@ -587,7 +587,7 @@ enum return_type perform_dhcp(struct interface_info * intf)
log_message("DHCP: telling server to use name = %s", dhcp_hostname);
}
- memset(&client_addr.sin_addr, 0, sizeof(&client_addr.sin_addr));
+ memset(&client_addr.sin_addr, 0, sizeof(client_addr.sin_addr));
client_addr.sin_family = AF_INET;
client_addr.sin_port = htons(BOOTP_CLIENT_PORT); /* bootp client */