diff options
Diffstat (limited to 'lib9p/tests/test_server')
-rw-r--r-- | lib9p/tests/test_server/main.c | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/lib9p/tests/test_server/main.c b/lib9p/tests/test_server/main.c index 07fc74b..7211322 100644 --- a/lib9p/tests/test_server/main.c +++ b/lib9p/tests/test_server/main.c @@ -108,6 +108,9 @@ static struct lib9p_srv_file_vtable api_file_vtable = { /* file tree ******************************************************************/ +enum { PATH_BASE = __COUNTER__ }; +#define PATH_COUNTER __COUNTER__ - PATH_BASE + #define FILE_COMMON(NAME) { \ .vtable = &util9p_static_file_vtable, \ \ @@ -115,7 +118,7 @@ static struct lib9p_srv_file_vtable api_file_vtable = { .g_name = "root", .g_num = 0, /* owner group */ \ .m_name = "root", .m_num = 0, /* last-modified-by user */ \ \ - .pathnum = __COUNTER__, \ + .pathnum = PATH_COUNTER, \ .name = NAME, \ .perm = 0444, \ .atime = 1728337905, \ @@ -129,7 +132,7 @@ static struct lib9p_srv_file_vtable api_file_vtable = { .g_name = "root", .g_num = 0, /* owner group */ \ .m_name = "root", .m_num = 0, /* last-modified-by user */ \ \ - .pathnum = __COUNTER__, \ + .pathnum = PATH_COUNTER, \ .name = NAME, \ .perm = 0555, \ .atime = 1728337905, \ @@ -156,7 +159,7 @@ static struct util9p_static_dir root = { STATIC_FILE("README.md", README_md), &((struct api_file){ .vtable = &api_file_vtable, - .pathnum = __COUNTER__, + .pathnum = PATH_COUNTER, }), NULL, }, |