1
0
mirror of https://git.FreeBSD.org/src.git synced 2025-01-17 15:27:36 +00:00

Use nitems() from sys/param.h.

MFC after:	2 weeks.
This commit is contained in:
Marcelo Araujo 2016-08-16 15:53:05 +00:00
parent 4c59a8860a
commit 4b61b26b28
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=304226

View File

@ -82,11 +82,11 @@ static char pathbuf[MAXPATHLEN + 1];
static const char *allv[] = {
"rpcgen", "-s", "udp", "-s", "tcp",
};
static int allc = sizeof (allv)/sizeof (allv[0]);
static int allc = nitems(allv);
static const char *allnv[] = {
"rpcgen", "-s", "netpath",
};
static int allnc = sizeof (allnv)/sizeof (allnv[0]);
static int allnc = nitems(allnv);
/*
* machinations for handling expanding argument list