chiark
/
gitweb
/
~ian
/
secnet.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
a8a7df6
)
Provide ARRAY_SIZE
author
Ian Jackson
<ijackson@chiark.greenend.org.uk>
Tue, 2 Sep 2014 07:58:24 +0000
(08:58 +0100)
committer
Ian Jackson
<ijackson@chiark.greenend.org.uk>
Sat, 27 Sep 2014 17:48:12 +0000
(18:48 +0100)
No call sites yet.
Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
secnet.h
patch
|
blob
|
history
diff --git
a/secnet.h
b/secnet.h
index 56872ed00e6c6eaf437b8af98aef2ad619591d1b..64a20a73a803e159317dcdae1944642deda3f17a 100644
(file)
--- a/
secnet.h
+++ b/
secnet.h
@@
-569,5
+569,6
@@
extern void log_from_fd(int fd, cstring_t prefix, struct log_if *log);
#define STRING(x) STRING2(x)
#define FILLZERO(obj) (memset(&(obj),0,sizeof((obj))))
#define STRING(x) STRING2(x)
#define FILLZERO(obj) (memset(&(obj),0,sizeof((obj))))
+#define ARRAY_SIZE(ary) (sizeof(ary)/sizeof(ary[0]))
#endif /* secnet_h */
#endif /* secnet_h */