* Minor cleanup.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@34290 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -1,6 +1,6 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright 2009, Ingo Weinhold, [email protected].
|
* 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.
|
* Distributed under the terms of the MIT License.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
@@ -100,10 +100,10 @@ do_seek_dir(DIR* dir)
|
|||||||
DIR*
|
DIR*
|
||||||
__create_dir_struct(int fd)
|
__create_dir_struct(int fd)
|
||||||
{
|
{
|
||||||
DIR* dir;
|
|
||||||
|
|
||||||
/* allocate the memory for the DIR structure */
|
/* 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;
|
errno = B_NO_MEMORY;
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
@@ -117,7 +117,6 @@ __create_dir_struct(int fd)
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
// #pragma mark - public API
|
// #pragma mark - public API
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user