From 743eb0b3eaf34a051ab0a58d5714f219ab4ac93a Mon Sep 17 00:00:00 2001 From: Ben Hutchings Date: Sat, 29 Oct 2011 02:36:48 +0100 Subject: Replace global devname variable with a field in struct cmd_context Signed-off-by: Ben Hutchings --- internal.h | 1 + 1 file changed, 1 insertion(+) (limited to 'internal.h') diff --git a/internal.h b/internal.h index eb13db8..cb126b3 100644 --- a/internal.h +++ b/internal.h @@ -90,6 +90,7 @@ static inline int test_bit(unsigned int nr, const unsigned long *addr) /* Context for sub-commands */ struct cmd_context { + const char *devname; /* net device name */ int fd; /* socket suitable for ethtool ioctl */ struct ifreq ifr; /* ifreq suitable for ethtool ioctl */ int argc; /* number of arguments to the sub-command */ -- cgit v1.2.1