Radish alpha
H
HardenedBSD Package Manager
Radicle
Git (anonymous pull)
Log in to clone via SSH
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 89b1517f2dc75315e27548246c8bf677d1a28fc3
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;