diff options
author | Jeff Dike <jdike@addtoit.com> | 2006-09-26 02:33:00 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@g5.osdl.org> | 2006-09-26 11:49:05 -0400 |
commit | 91b165c0594ab78c64f26d26e3174e6dfd60ed9d (patch) | |
tree | 0730eefa9d4ce786f7f561e3b40700418d6d0970 /arch/um/drivers/pcap_kern.c | |
parent | 13c06be399902c9ebda08e092edb1614bb4a3761 (diff) |
[PATCH] uml: Use ARRAY_SIZE more assiduously
There were a bunch of missed ARRAY_SIZE opportunities.
Also, some formatting fixes in the affected areas of code.
Signed-off-by: Jeff Dike <jdike@addtoit.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'arch/um/drivers/pcap_kern.c')
-rw-r--r-- | arch/um/drivers/pcap_kern.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/um/drivers/pcap_kern.c b/arch/um/drivers/pcap_kern.c index 466ff2c2f918..4c767c7adb96 100644 --- a/arch/um/drivers/pcap_kern.c +++ b/arch/um/drivers/pcap_kern.c | |||
@@ -76,7 +76,7 @@ int pcap_setup(char *str, char **mac_out, void *data) | |||
76 | if(host_if != NULL) | 76 | if(host_if != NULL) |
77 | init->host_if = host_if; | 77 | init->host_if = host_if; |
78 | 78 | ||
79 | for(i = 0; i < sizeof(options)/sizeof(options[0]); i++){ | 79 | for(i = 0; i < ARRAY_SIZE(options); i++){ |
80 | if(options[i] == NULL) | 80 | if(options[i] == NULL) |
81 | continue; | 81 | continue; |
82 | if(!strcmp(options[i], "promisc")) | 82 | if(!strcmp(options[i], "promisc")) |