optimizate: clean up unused code && code formatting

This commit is contained in:
luwenpeng
2024-08-14 10:50:33 +08:00
parent 927d0cd344
commit 6e1c25a445
20 changed files with 61 additions and 86 deletions

View File

@@ -170,7 +170,7 @@ static inline void packet_inject_test(struct packet_inject_case *test)
// run
char cwd[PATH_MAX] = {0};
char temp[PATH_MAX*2] = {0};
char temp[PATH_MAX * 2] = {0};
getcwd(cwd, sizeof(cwd));
chdir(test->work_dir);
snprintf(temp, sizeof(temp), "dumpfile_dir = \"%s\"", dumpfile_dir);