diff options
author | Ben Hutchings <bhutchings@solarflare.com> | 2011-10-31 23:06:52 +0000 |
---|---|---|
committer | Ben Hutchings <bhutchings@solarflare.com> | 2011-11-03 19:13:07 +0000 |
commit | 02af8c22427ef521314725673860cf7906e49780 (patch) | |
tree | 6cb826c2923d8f83078e7639f395786e56e801d8 /ethtool.c | |
parent | 5a3279e43f2bf46a29d3a0e3e424ba6774a9be64 (diff) | |
download | ethtool-02af8c22427ef521314725673860cf7906e49780.tar.gz |
Declare static variables const as appropriate
Signed-off-by: Ben Hutchings <bhutchings@solarflare.com>
Diffstat (limited to 'ethtool.c')
-rw-r--r-- | ethtool.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -104,7 +104,7 @@ static int do_permaddr(struct cmd_context *ctx); static int do_getfwdump(struct cmd_context *ctx); static int do_setfwdump(struct cmd_context *ctx); -static struct option { +static const struct option { const char *opts; int want_device; int (*func)(struct cmd_context *); @@ -965,7 +965,7 @@ static char *unparse_rxfhashopts(u64 opts) return buf; } -static struct { +static const struct { const char *name; int (*func)(struct ethtool_drvinfo *info, struct ethtool_regs *regs); |