Some warnings in debug mode.
git-svn-id: svn://svn.code.sf.net/p/sc2/code/trunk@1736 8092fc87-c524-0410-9efc-e669fe64eaf9
This commit is contained in:
@@ -509,6 +509,14 @@ stdio_openEntries(uio_PDirHandle *pDirHandle) {
|
|||||||
result = stdio_EntriesIterator_new(dirHandle);
|
result = stdio_EntriesIterator_new(dirHandle);
|
||||||
result->status = readdir_r(dirHandle, result->direntBuffer,
|
result->status = readdir_r(dirHandle, result->direntBuffer,
|
||||||
&result->entry);
|
&result->entry);
|
||||||
|
#ifndef WIN32
|
||||||
|
# ifdef DEBUG
|
||||||
|
if (result->status != 0) {
|
||||||
|
fprintf(stderr, "Warning: readdir_r() failed: %s\n",
|
||||||
|
strerror(result->status));
|
||||||
|
}
|
||||||
|
# endif
|
||||||
|
#endif
|
||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
@@ -577,7 +585,7 @@ stdio_readEntries(stdio_EntriesIterator **iteratorPtr,
|
|||||||
#ifndef WIN32
|
#ifndef WIN32
|
||||||
# ifdef DEBUG
|
# ifdef DEBUG
|
||||||
if (iterator->status != 0) {
|
if (iterator->status != 0) {
|
||||||
fprintf(stderr, "Warning: readdir() failed: %s\n",
|
fprintf(stderr, "Warning: readdir_r() failed: %s\n",
|
||||||
strerror(iterator->status));
|
strerror(iterator->status));
|
||||||
}
|
}
|
||||||
# endif
|
# endif
|
||||||
|
|||||||
Reference in New Issue
Block a user