diff options
author | Jasper Lievisse Adriaanse <jasper@cvs.openbsd.org> | 2010-01-24 15:02:16 +0000 |
---|---|---|
committer | Jasper Lievisse Adriaanse <jasper@cvs.openbsd.org> | 2010-01-24 15:02:16 +0000 |
commit | 8c8066bac5665f15cb86cfa1ce2be6e7fb6d88c6 (patch) | |
tree | fdcd949e8692e1c0781808da4c36f391882c2aa7 /usr.bin/mg | |
parent | 306948c159b2bb936dc84bf0095d3f7c4827db10 (diff) |
- revert previous; nitems() shouldn't be used in userland (yet).
ok kjell@
Diffstat (limited to 'usr.bin/mg')
-rw-r--r-- | usr.bin/mg/theo.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/mg/theo.c b/usr.bin/mg/theo.c index 144df993ba7..4e2d81b35e5 100644 --- a/usr.bin/mg/theo.c +++ b/usr.bin/mg/theo.c @@ -1,4 +1,4 @@ -/* $OpenBSD: theo.c,v 1.116 2010/01/24 05:22:56 tedu Exp $ */ +/* $OpenBSD: theo.c,v 1.117 2010/01/24 15:02:15 jasper Exp $ */ /* * Copyright (c) 2002 Artur Grabowski <art@openbsd.org> * All rights reserved. @@ -161,7 +161,7 @@ static const char *talk[] = { "You aren't being conservative -- you are trying to be a caveman." }; -static const int ntalk = nitems(talk); +static const int ntalk = sizeof(talk)/sizeof(talk[0]); /* ARGSUSED */ static int |