summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeff Garzik <jgarzik@pobox.com>2005-10-25 02:06:01 -0400
committerJeff Garzik <jgarzik@pobox.com>2005-10-25 02:06:01 -0400
commita4f48f0196c5d6a76bc26dfd6cc7a2823a0daabc (patch)
tree5f1a7f66cb31781656a507a8511ee4741f0fa833
parent32c8037055f5fdaba9c9f401fd532c02571b66d7 (diff)
downloadethtool-a4f48f0196c5d6a76bc26dfd6cc7a2823a0daabc.tar.gz
Fix minor FC4/x86 warnings. Add .gitignore file.
-rw-r--r--.gitignore20
-rw-r--r--ethtool.c6
2 files changed, 23 insertions, 3 deletions
diff --git a/.gitignore b/.gitignore
new file mode 100644
index 0000000..732099e
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1,20 @@
+*.o
+
+Makefile
+Makefile.in
+
+COPYING
+INSTALL
+missing
+depcomp
+install-sh
+ethtool-config.h*
+ethtool.spec
+ethtool
+stamp-h1
+config.*
+aclocal.m4
+configure
+
+autom4te.cache
+.deps
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]);