summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorjasper <jasper@openbsd.org>2010-01-24 15:02:15 +0000
committerjasper <jasper@openbsd.org>2010-01-24 15:02:15 +0000
commitd7addb37e36bd5b2a171d17a3089ca5974859cfe (patch)
tree43c86005cc2b2c88c33d946400d5f1f2b3b80992
parentuse libspecs through Dependencies. (diff)
downloadwireguard-openbsd-d7addb37e36bd5b2a171d17a3089ca5974859cfe.tar.xz
wireguard-openbsd-d7addb37e36bd5b2a171d17a3089ca5974859cfe.zip
- revert previous; nitems() shouldn't be used in userland (yet).
ok kjell@
-rw-r--r--usr.bin/mg/theo.c4
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