* Minor cleanup.

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@34290 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Axel Dörfler
2009-11-26 16:33:03 +00:00
parent 486fffdaaf
commit d82802841c
+4 -5
View File
@@ -1,6 +1,6 @@
/*
* Copyright 2009, Ingo Weinhold, [email protected].
* Copyright 2004-2008, Axel Dörfler, [email protected].
* Copyright 2004-2009, Axel Dörfler, [email protected].
* Distributed under the terms of the MIT License.
*/
@@ -100,10 +100,10 @@ do_seek_dir(DIR* dir)
DIR*
__create_dir_struct(int fd)
{
DIR* dir;
/* allocate the memory for the DIR structure */
if ((dir = (DIR*)malloc(DIR_BUFFER_SIZE)) == NULL) {
DIR* dir = (DIR*)malloc(DIR_BUFFER_SIZE);
if (dir == NULL) {
errno = B_NO_MEMORY;
return NULL;
}
@@ -117,7 +117,6 @@ __create_dir_struct(int fd)
}
// #pragma mark - public API