formatting

This commit is contained in:
anon 2025-01-25 11:23:22 +01:00
parent cb2f700227
commit a26a882446
2 changed files with 3 additions and 3 deletions

View File

@ -44,7 +44,7 @@ int add_directory(const char * const folder) {
struct stat file_stat;
entry_t entry;
while ((mydirent = readdir(dir)) != NULL) {
if (strcmp(mydirent->d_name, ".") == 0
if (strcmp(mydirent->d_name, ".") == 0
|| strcmp(mydirent->d_name, "..") == 0) {
continue;
}
@ -230,7 +230,7 @@ int execute_directive_file(FILE * f) {
struct stat file_stat;
int es = stat(touch_buffer, &file_stat);
CHECK_OPEN(!(es == -1), touch_buffer, goto recovery); // XXX
CHECK_OPEN(!(es == -1), touch_buffer, goto recovery);
touch_entry = (entry_t) {
.name = touch_buffer,

View File

@ -183,7 +183,7 @@ class CMDTEST_mydir < Cmdtest::Testcase
File.write('target.txt',
[
"000\t./mydir/.gitkeep",
"002\t./mydir/script.sh"
"002\t./mydir/script.sh",
].join("\n")
)