--- os2_delete.c.orig 2013-07-24 18:26:46.861548762 -0700 +++ os2_delete.c 2013-07-24 18:28:45.991549989 -0700 @@ -103,8 +103,12 @@ create_files(); d = opendir(TESTDIR "/test0.txt"); - if (d != NULL) FAILED("opendir() on file succeed"); - if (errno != ENOTDIR) FAILED("opendir() on file didn't give ENOTDIR"); + if (d != NULL) { + FAILED("opendir() on file succeed"); + } + if (errno != ENOTDIR) { + FAILED("opendir() on file didn't give ENOTDIR"); + } d = opendir(TESTDIR); @@ -116,7 +120,9 @@ while (1) { int n = os2_delete(d); - if (n == 0) break; + if (n == 0) { + break; + } total_deleted += n; } closedir(d);