FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.


» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > Ubuntu > Ubuntu User

 
 
LinkBack Thread Tools
 
Old 01-10-2011, 01:21 PM
Radek Vykydal
 
Default Initialize iface structure properly (#638131)

---
loader/loader.c | 2 +-
loader/net.c | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/loader/loader.c b/loader/loader.c
index 74d3e2d..7d7863b 100644
--- a/loader/loader.c
+++ b/loader/loader.c
@@ -1531,7 +1531,7 @@ static char *doLoaderMain(struct loaderData_s *loaderData,
}
logMessage(INFO, "need to set up networking");

- memset(&iface, 0, sizeof(iface));
+ iface_init_iface_t(&iface);

/* fall through to interface selection */
}
diff --git a/loader/net.c b/loader/net.c
index 414b8b4..42ff751 100644
--- a/loader/net.c
+++ b/loader/net.c
@@ -2010,7 +2010,7 @@ int kickstartNetworkUp(struct loaderData_s * loaderData, iface_t * iface) {
(loaderData->netDev != NULL) && (loaderData->netDev_set == 1))
return 0;

- memset(iface, 0, sizeof(*iface));
+ iface_init_iface_t(iface);

return activateDevice(loaderData, iface);

--
1.7.2

_______________________________________________
Anaconda-devel-list mailing list
Anaconda-devel-list@redhat.com
https://www.redhat.com/mailman/listinfo/anaconda-devel-list
 

Thread Tools




All times are GMT. The time now is 10:14 PM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright 2007 - 2008, www.linux-archive.org