diff options
author | Jasper Lievisse Adriaanse <jasper@cvs.openbsd.org> | 2009-12-16 11:06:18 +0000 |
---|---|---|
committer | Jasper Lievisse Adriaanse <jasper@cvs.openbsd.org> | 2009-12-16 11:06:18 +0000 |
commit | faf772dba08a4b68f728672246d07a9674cecf96 (patch) | |
tree | 7af9baa0098283dce7e11b0aa08d860735594451 | |
parent | 0420822b9f807947b2dac7f1586dbc560c83c5f4 (diff) |
- use nitems() inside a descriptive macro name
ok kettenis@
-rw-r--r-- | sys/arch/sparc64/dev/creator.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/arch/sparc64/dev/creator.c b/sys/arch/sparc64/dev/creator.c index fc9363d2d6c..1145a741806 100644 --- a/sys/arch/sparc64/dev/creator.c +++ b/sys/arch/sparc64/dev/creator.c @@ -1,4 +1,4 @@ -/* $OpenBSD: creator.c,v 1.44 2009/12/02 20:11:17 deraadt Exp $ */ +/* $OpenBSD: creator.c,v 1.45 2009/12/16 11:06:17 jasper Exp $ */ /* * Copyright (c) 2002 Jason L. Wright (jason@thought.net) @@ -490,7 +490,7 @@ const struct creator_mappings { { FFB_VOFF_PROM, FFB_POFF_PROM, FFB_VLEN_PROM }, { FFB_VOFF_EXP, FFB_POFF_EXP, FFB_VLEN_EXP }, }; -#define CREATOR_NMAPPINGS (sizeof(creator_map)/sizeof(creator_map[0])) +#define CREATOR_NMAPPINGS nitems(creator_map) paddr_t creator_mmap(vsc, off, prot) |