changed elemsof() macro to countof()

This commit is contained in:
Andreas Steffen
2009-04-17 09:28:45 +00:00
parent 247e665a44
commit 2775c9aac8
11 changed files with 13 additions and 15 deletions
+2 -2
View File
@@ -1460,7 +1460,7 @@ scan_proc_shunts(void)
* Note: if there are too many fields, just stop;
* it will be diagnosed a little later.
*/
for (fi = 0; fi < (int)elemsof(field); fi++)
for (fi = 0; fi < (int)countof(field); fi++)
{
static const char sep[] = " \t\n"; /* field-separating whitespace */
size_t w;
@@ -1869,7 +1869,7 @@ setup_half_ipsec_sa(struct state *st, bool inbound)
for (ei = esp_info; ; ei++)
{
if (ei == &esp_info[elemsof(esp_info)])
if (ei == &esp_info[countof(esp_info)])
{
/* Check for additional kernel alg */
#ifndef NO_KERNEL_ALG