Author: rooneg
Date: Sun Nov 13 16:27:54 2005
New Revision: 344011
URL: http://svn.apache.org/viewcvs?rev=344011&view=rev
Log:
Oops, it's ENOENT you get after reading all the files in a dir, not EOF.
* ls/ls.c
(main): Look for ENOENT, not EOF, also use the APR_STATUS_IS macro, not
a direct comparison.
Modified:
apr/examples/trunk/ls/ls.c
Modified: apr/examples/trunk/ls/ls.c
URL: http://svn.apache.org/viewcvs/apr/examples/trunk/ls/ls.c?rev=344011&r1=344010&r2=344011&view=diff
==============================================================================
--- apr/examples/trunk/ls/ls.c (original)
+++ apr/examples/trunk/ls/ls.c Sun Nov 13 16:27:54 2005
@@ -20,7 +20,7 @@
apr_finfo_t fi;
rv = apr_dir_read(&fi, APR_FINFO_NAME | APR_FINFO_TYPE, d);
- if (rv == APR_EOF)
+ if (APR_STATUS_IS_ENOENT(rv))
break;
else if (rv)
return rv;
|