a bunch more code cleanup from cppcheck

This commit is contained in:
Mark Vejvoda
2013-05-26 06:03:32 +00:00
parent c1ca53f50d
commit 2c1b181bc7
24 changed files with 126 additions and 119 deletions

View File

@@ -252,7 +252,7 @@ int g3d2xml(FILE *infile, FILE *outfile)
free(fdata);
return FALSE;
}
fprintf(outfile, "\t\t<Vertices frame=\"%d\">\n",
fprintf(outfile, "\t\t<Vertices frame=\"%u\">\n",
jj);
for (kk=0; kk < meshHeader.vertexCount; kk++)
{
@@ -286,7 +286,7 @@ int g3d2xml(FILE *infile, FILE *outfile)
free(fdata);
return FALSE;
}
fprintf(outfile, "\t\t<Normals frame=\"%d\">\n",
fprintf(outfile, "\t\t<Normals frame=\"%u\">\n",
jj);
for (kk=0; kk < meshHeader.vertexCount; kk++)
{

View File

@@ -521,7 +521,7 @@ int processVertices(xmlNode *n, FILE *outfile, uint32 vertexCount)
/* check that the correct number of vertices were processed */
if (counted_vertices != vertexCount)
{
printf("Found %d vertices, expected %d!\n",
printf("Found %u vertices, expected %u!\n",
counted_vertices, vertexCount);
return FALSE;
}
@@ -570,7 +570,7 @@ int processNormals(xmlNode *n, FILE *outfile, uint32 vertexCount)
/* check that the correct number of normals were processed */
if (counted_normals != vertexCount)
{
printf("Found %d normals, expected %d!\n",
printf("Found %u normals, expected %u!\n",
counted_normals, vertexCount);
return FALSE;
}
@@ -617,7 +617,7 @@ int processTexcoords(xmlNode *n, FILE *outfile, uint32 vertexCount)
/* check that the correct number of texco were processed */
if (counted_texco != vertexCount)
{
printf("Found %d texture coordinates, expected %d!\n",
printf("Found %u texture coordinates, expected %u!\n",
counted_texco, vertexCount);
return FALSE;
}
@@ -662,7 +662,7 @@ int processIndices(xmlNode *n, FILE *outfile, uint32 indexCount)
/* check that the correct number of indices were processed */
if (counted_indices != indexCount)
{
printf("Found %d indices, expected %d!\n",
printf("Found %u indices, expected %u!\n",
counted_indices, indexCount);
return FALSE;
}