Commit e8dd8c63 authored by Cyrill Gorcunov's avatar Cyrill Gorcunov Committed by Pavel Emelyanov

zdtm: Add ARRAY_SIZE into the header

Suitable macro.
Signed-off-by: 's avatarCyrill Gorcunov <gorcunov@openvz.org>
Signed-off-by: 's avatarPavel Emelyanov <xemul@parallels.com>
parent e09f7ea0
......@@ -76,6 +76,8 @@ extern void __push_opt(struct long_opt *opt);
#define __param_check(name, p, type) \
static inline type *__check_##name(void) { return(p); }
#define ARRAY_SIZE(x) (sizeof(x) / sizeof((x)[0]))
extern void parseargs(int, char **);
extern int parse_opt_bool(char *param, void *arg);
#define param_check_bool(name, p) __param_check(name, p, int)
......
......@@ -4,8 +4,6 @@
#include "zdtmtst.h"
#define ARRAY_SIZE(x) (sizeof(x) / sizeof((x)[0]))
#define LO_CONF_DIR_PATH "/proc/sys/net/ipv4/conf/lo"
#define DEF_CONF_DIR_PATH "/proc/sys/net/ipv4/conf/default"
......
......@@ -25,7 +25,6 @@ typedef time_t (__vdso_time_t)(time_t *t);
#define TIME_DELTA_SEC (3)
#define ARRAY_SIZE(x) (sizeof(x) / sizeof((x)[0]))
#define BUILD_BUG_ON(condition) ((void)sizeof(char[1 - 2*!!(condition)]))
#define VDSO_BAD_ADDR (-1ul)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment