Radish alpha
H
rad:z3QDZAW2FAfuLvihrhiyDC9fAD8G9
HardenedBSD Package Manager
Radicle
Git
use a new macro NELEM() to count the number of element in a static sized array.
Alexandre Perrin committed 12 years ago
commit c03111ff60b7f760b2a5e88c4b33d9fb0bf975d0
parent 89b1517
1 file changed +2 -0
modified libpkg/private/utils.h
@@ -49,6 +49,8 @@
#define HASH_ADD_INO(head,ino,add)                                          \
	HASH_ADD(hh,head,ino,sizeof(ino_t),add)

+
#define	NELEM(array)	(sizeof(array) / sizeof((array)[0]))
+

struct hardlinks {
	ino_t inode;
	UT_hash_handle hh;