- Added missing #include <stdio.h>
- Fixed sprintf warning git-svn-id: file:///srv/svn/repos/haiku/trunk/current@3945 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -10,6 +10,8 @@
|
|||||||
|
|
||||||
#include "DirectoryIterator.h"
|
#include "DirectoryIterator.h"
|
||||||
|
|
||||||
|
#include <stdio.h>
|
||||||
|
|
||||||
using namespace Udf;
|
using namespace Udf;
|
||||||
|
|
||||||
status_t
|
status_t
|
||||||
@@ -19,7 +21,7 @@ DirectoryIterator::GetNextEntry(vnode_id *id, char *name, uint32 *length)
|
|||||||
return B_BAD_VALUE;
|
return B_BAD_VALUE;
|
||||||
|
|
||||||
if (fCount < 5)
|
if (fCount < 5)
|
||||||
sprintf(name, "entry #%d", fCount++);
|
sprintf(name, "entry #%ld", fCount++);
|
||||||
else
|
else
|
||||||
return B_ENTRY_NOT_FOUND;
|
return B_ENTRY_NOT_FOUND;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user