Whamcloud - gitweb
catch extra args without dashes
[fs/lustre-release.git] / lustre / utils / wirehdr.c
1 #include <stdio.h>
2 #include <liblustre.h>
3 #include <lustre_lib.h>
4 #include <lustre/lustre_idl.h>
5 #include <lustre_disk.h>
6
7 #undef LASSERT
8 #undef LASSERTF
9 #define CLASSERT(cond) ({ switch(42) { case (cond): case 0: break; } })
10 #define LASSERT(cond) if (!(cond)) { printf("failed " #cond "\n"); ret = 1; }
11 #define LASSERTF(cond, fmt, arg) if (!(cond)) { printf("failed '" #cond "'" fmt, arg);ret = 1;}
12
13 int ret;
14
15 void lustre_assert_wire_constants(void);
16
17 int main()
18 {
19         lustre_assert_wire_constants();
20
21         if (ret == 0)
22                 printf("wire constants OK\n");
23
24         return ret;
25 }
26