[test-suite] r178884 - Declaration vs. Initialization in C89
Renato Golin
renato.golin at linaro.org
Fri Apr 5 09:45:16 PDT 2013
Author: rengolin
Date: Fri Apr 5 11:45:16 2013
New Revision: 178884
URL: http://llvm.org/viewvc/llvm-project?rev=178884&view=rev
Log:
Declaration vs. Initialization in C89
Modified:
test-suite/trunk/MultiSource/Applications/ClamAV/libclamav_readdb.c
Modified: test-suite/trunk/MultiSource/Applications/ClamAV/libclamav_readdb.c
URL: http://llvm.org/viewvc/llvm-project/test-suite/trunk/MultiSource/Applications/ClamAV/libclamav_readdb.c?rev=178884&r1=178883&r2=178884&view=diff
==============================================================================
--- test-suite/trunk/MultiSource/Applications/ClamAV/libclamav_readdb.c (original)
+++ test-suite/trunk/MultiSource/Applications/ClamAV/libclamav_readdb.c Fri Apr 5 11:45:16 2013
@@ -1092,6 +1092,7 @@ static int cli_loaddbdir_l(const char *d
#endif
struct stat sb;
char *dbfile;
+ unsigned i;
int ret = CL_ESUPPORT;
@@ -1134,7 +1135,7 @@ static int cli_loaddbdir_l(const char *d
qsort(dents, ndents, sizeof(struct dirent), dirent_compare);
- for (unsigned i=0; i<ndents; i++) {
+ for (i=0; i<ndents; i++) {
dent = &dents[i];
#if (!defined(C_INTERIX)) && (!defined(C_WINDOWS)) && (!defined(C_CYGWIN))
if(dent->d_ino) {
More information about the llvm-commits
mailing list