summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorstijn <stijn@ignitron.net>2018-10-04 12:45:53 +0200
committerDamien George <damien.p.george@gmail.com>2018-10-05 17:14:33 +1000
commit397ee7c00e67ba4bd2da5d93187c47725f55157b (patch)
tree6cbb7d295f3d95bbc6407eb3d03349c631cdd047
parent18f45d2e235f180fc566b2371d001be3eeb7e91a (diff)
windows/msvc: Fix incorrect indentation in dirent.c.
-rw-r--r--ports/windows/msvc/dirent.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/ports/windows/msvc/dirent.c b/ports/windows/msvc/dirent.c
index e050432a1..ceee666c1 100644
--- a/ports/windows/msvc/dirent.c
+++ b/ports/windows/msvc/dirent.c
@@ -42,8 +42,8 @@ DIR *opendir(const char *name) {
DIR *dir = malloc(sizeof(DIR));
if (!dir) {
- errno = ENOMEM;
- return NULL;
+ errno = ENOMEM;
+ return NULL;
}
dir->result.d_ino = 0;
dir->result.d_name = NULL;
@@ -52,9 +52,9 @@ DIR *opendir(const char *name) {
const size_t nameLen = strlen(name);
char *path = malloc(nameLen + 3); // allocate enough for adding "/*"
if (!path) {
- free(dir);
- errno = ENOMEM;
- return NULL;
+ free(dir);
+ errno = ENOMEM;
+ return NULL;
}
strcpy(path, name);
@@ -69,9 +69,9 @@ DIR *opendir(const char *name) {
dir->findHandle = FindFirstFile(path, &dir->findData);
free(path);
if (dir->findHandle == INVALID_HANDLE_VALUE) {
- free(dir);
- errno = ENOENT;
- return NULL;
+ free(dir);
+ errno = ENOENT;
+ return NULL;
}
return dir;
}