diff options
author | Domen Puncer <domen@coderock.org> | 2005-06-20 23:54:37 +0200 |
---|---|---|
committer | Jeff Garzik <jgarzik@pobox.com> | 2005-06-26 23:47:57 -0400 |
commit | 62595eb9066ea09f7f8a789a38bec16d70ee0321 (patch) | |
tree | 4b8e5e65e4d977b643bf4aeb7d4f6757e533330c /drivers/net | |
parent | 020f46a39eb7b99a575b9f4d105fce2b142acdf1 (diff) |
[PATCH] wireless: char* -> char[] conversion in airo.c
This conversion makes code from line 7101 right:
if (copy_to_user(com.data, swversion, sizeof(swversion)))
size output (before, after):
55416 2228 160 57804 e1cc drivers/net/wireless/airo.o
55412 2228 160 57800 e1c8 drivers/net/wireless/airo.o
more outputs from Alexey Dobriyan:
2.95.3:
text data bss dec hex filename
before 51118 2156 160 53434 d0ba drivers/net/wireless/airo.o
after 51118 2156 160 53434 d0ba drivers/net/wireless/airo.o
3.3.5-20050130:
before 46999 2156 160 49315 c0a3 drivers/net/wireless/airo.o
after 46994 2156 160 49310 c09e drivers/net/wireless/airo.o
4.1.0-20050522:
before 45555 2220 160 47935 bb3f drivers/net/wireless/airo.o
after 45550 2220 160 47930 bb3a drivers/net/wireless/airo.o
Signed-off-by: Domen Puncer <domen@coderock.org>
Diffstat (limited to 'drivers/net')
-rw-r--r-- | drivers/net/wireless/airo.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/wireless/airo.c b/drivers/net/wireless/airo.c index 180968899ca..c12648d8192 100644 --- a/drivers/net/wireless/airo.c +++ b/drivers/net/wireless/airo.c @@ -900,7 +900,7 @@ typedef struct aironet_ioctl { unsigned char __user *data; // d-data } aironet_ioctl; -static char *swversion = "2.1"; +static char swversion[] = "2.1"; #endif /* CISCO_EXT */ #define NUM_MODULES 2 |