diff options
author | Luke T. Shumaker <lukeshu@lukeshu.com> | 2024-10-26 02:57:12 -0600 |
---|---|---|
committer | Luke T. Shumaker <lukeshu@lukeshu.com> | 2024-10-26 02:57:12 -0600 |
commit | 1dad21650eb6fb3a4b9bba6c0ddd1402930163e2 (patch) | |
tree | 0779682be9a5f22d8e7c33824319d291105fa2c8 /cmd/srv9p | |
parent | 20ff819fc032fb6ae902022f12891ae7c9f73151 (diff) |
Lint for tabs-as-alignment
Diffstat (limited to 'cmd/srv9p')
-rw-r--r-- | cmd/srv9p/gnet.c | 14 | ||||
-rw-r--r-- | cmd/srv9p/main.c | 10 |
2 files changed, 12 insertions, 12 deletions
diff --git a/cmd/srv9p/gnet.c b/cmd/srv9p/gnet.c index 39ad9b2..699deaf 100644 --- a/cmd/srv9p/gnet.c +++ b/cmd/srv9p/gnet.c @@ -50,14 +50,14 @@ static void gnet_init(void) { error(1, errno, "sigaction"); } -#define WAKE_COROUTINE(args) do { \ - int r; \ - union sigval val = {0}; \ - val.sival_int = (int)((args)->cr_coroutine); \ - do { \ +#define WAKE_COROUTINE(args) do { \ + int r; \ + union sigval val = {0}; \ + val.sival_int = (int)((args)->cr_coroutine); \ + do { \ r = pthread_sigqueue((args)->cr_thread, gnet_sig_io, val); \ - assert(r == 0 || r == EAGAIN); \ - } while (r == EAGAIN); \ + assert(r == 0 || r == EAGAIN); \ + } while (r == EAGAIN); \ } while (0) static inline bool RUN_PTHREAD(void *(*fn)(void *), void *args) { diff --git a/cmd/srv9p/main.c b/cmd/srv9p/main.c index 7ed985f..a2b437e 100644 --- a/cmd/srv9p/main.c +++ b/cmd/srv9p/main.c @@ -20,7 +20,7 @@ #include "config.h" #ifndef CONFIG_NETIO_NUM_CONNS -# error config.h must define CONFIG_NETIO_NUM_CONNS + #error config.h must define CONFIG_NETIO_NUM_CONNS #endif /* implementation *************************************************************/ @@ -31,11 +31,11 @@ #define FILE_COMMON(NAME) { \ .vtable = &static_file_vtable, \ - \ + \ .u_name = "root", .u_num = 0, /* owner user */ \ .g_name = "root", .g_num = 0, /* owner group */ \ .m_name = "root", .m_num = 0, /* last-modified-by user */ \ - \ + \ .pathnum = __COUNTER__, \ .name = NAME, \ .perm = 0444, \ @@ -45,11 +45,11 @@ #define DIR_COMMON(NAME) { \ .vtable = &static_dir_vtable, \ - \ + \ .u_name = "root", .u_num = 0, /* owner user */ \ .g_name = "root", .g_num = 0, /* owner group */ \ .m_name = "root", .m_num = 0, /* last-modified-by user */ \ - \ + \ .pathnum = __COUNTER__, \ .name = NAME, \ .perm = 0555, \ |