summaryrefslogtreecommitdiffstats
path: root/mdk-stage1/dhcp.c
diff options
context:
space:
mode:
Diffstat (limited to 'mdk-stage1/dhcp.c')
-rw-r--r--mdk-stage1/dhcp.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/mdk-stage1/dhcp.c b/mdk-stage1/dhcp.c
index 7daedcea5..678031e85 100644
--- a/mdk-stage1/dhcp.c
+++ b/mdk-stage1/dhcp.c
@@ -1,5 +1,5 @@
/*
- * Guillaume Cottenceau (gc@mandriva.com)
+ * Guillaume Cottenceau (gc)
*
* Copyright 2000 Mandriva
*
@@ -213,7 +213,7 @@ static void parse_reply(struct bootp_request * breq, struct interface_info * int
unsigned char * chptr;
unsigned char option, length;
- if (breq->bootfile && strlen(breq->bootfile) > 0) {
+ if (strlen(breq->bootfile) > 0) {
if (IS_NETAUTO)
add_to_env("KICKSTART", breq->bootfile);
else
@@ -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 */