From a4f48f0196c5d6a76bc26dfd6cc7a2823a0daabc Mon Sep 17 00:00:00 2001 From: Jeff Garzik Date: Tue, 25 Oct 2005 02:06:01 -0400 Subject: Fix minor FC4/x86 warnings. Add .gitignore file. --- ethtool.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'ethtool.c') diff --git a/ethtool.c b/ethtool.c index 1eceb63..77ce379 100644 --- a/ethtool.c +++ b/ethtool.c @@ -43,7 +43,7 @@ #define ARRAY_SIZE(x) (sizeof(x) / sizeof((x)[0])) #endif -static int parse_wolopts(char *optstr, int *data); +static int parse_wolopts(char *optstr, u32 *data); static char *unparse_wolopts(int wolopts); static int parse_sopass(char *src, unsigned char *dest); static int do_gdrv(int fd, struct ifreq *ifr); @@ -913,7 +913,7 @@ static int dump_wol(struct ethtool_wolinfo *wol) return 0; } -static int parse_wolopts(char *optstr, int *data) +static int parse_wolopts(char *optstr, u32 *data) { *data = 0; while (*optstr) { @@ -1985,7 +1985,7 @@ static int do_gstats(int fd, struct ifreq *ifr) for (i = 0; i < n_stats; i++) { char s[ETH_GSTRING_LEN]; - strncpy(s, &strings->data[i * ETH_GSTRING_LEN], + strncpy(s, (const char *) &strings->data[i * ETH_GSTRING_LEN], ETH_GSTRING_LEN); fprintf(stdout, " %s: %llu\n", s, stats->data[i]); -- cgit v1.2.1