assorted fixes for bugs found with randomconfig

This commit is contained in:
Denis Vlasenko
2007-02-03 03:31:13 +00:00
parent e968fcd562
commit 4c97863109
5 changed files with 12 additions and 8 deletions

View File

@@ -107,7 +107,8 @@ static inline int get_wol_pw(const char *ethoptarg, unsigned char *wol_passwd);
int ether_wake_main(int argc, char *argv[])
{
char *ifname = "eth0", *pass = NULL;
const char *ifname = "eth0";
char *pass = NULL;
unsigned long flags;
unsigned char wol_passwd[6];
int wol_passwd_sz = 0;