test: format C test files and fix clang-tidy warnings

It's probably not worth adding the C test files to regular formatting as
they're pretty much never touched, but ensuring the files are formatted
according to our standards and getting rid of warnings is a cheap
one-time fix.
This commit is contained in:
dundargoc
2024-12-21 13:03:17 +01:00
committed by dundargoc
parent 130b5fd85f
commit fd05c7f19d
8 changed files with 122 additions and 119 deletions

View File

@@ -1,6 +1,5 @@
/// Helper program to exit and keep stdout open (like "xclip -i -loops 1").
#include <stdio.h>
#include <uv.h>
int main(int argc, char **argv)
@@ -8,7 +7,7 @@ int main(int argc, char **argv)
uv_loop_t *loop = uv_default_loop();
uv_process_t child_req;
char * args[3];
char *args[3];
args[0] = "sleep";
args[1] = "10";
args[2] = NULL;