summaryrefslogtreecommitdiff
path: root/header.c
diff options
context:
space:
mode:
Diffstat (limited to 'header.c')
-rw-r--r--header.c9
1 files changed, 3 insertions, 6 deletions
diff --git a/header.c b/header.c
index 32262f3..45a92a1 100644
--- a/header.c
+++ b/header.c
@@ -72,11 +72,10 @@ FindStringProperty(const char *propName,
{
FSPropOffset *propOffset;
unsigned int length;
- unsigned int i;
propOffset = &propOffsets[0];
length = (unsigned int) strlen(propName);
- for (i = propInfo->num_offsets; i--; propOffset++) {
+ for (unsigned int i = propInfo->num_offsets; i--; propOffset++) {
if (propOffset->type == PropTypeString) {
#ifdef DEBUG
@@ -109,12 +108,11 @@ FindNumberProperty(const char *propName,
unsigned char *propData)
{
FSPropOffset *propOffset;
- unsigned int i;
unsigned int length;
propOffset = &propOffsets[0];
length = (unsigned int) strlen(propName);
- for (i = propInfo->num_offsets; i--; propOffset++) {
+ for (unsigned int i = propInfo->num_offsets; i--; propOffset++) {
if ((propOffset->type == PropTypeSigned) ||
(propOffset->type == PropTypeUnsigned)) {
if ((propOffset->name.length == length) &&
@@ -142,7 +140,6 @@ EmitHeader(FILE *outFile,
unsigned int len;
int type;
char *cp;
- const char **cpp;
unsigned long xResolution;
fprintf(outFile, "STARTFONT 2.1\n");
@@ -156,7 +153,7 @@ EmitHeader(FILE *outFile,
fwrite(cp, 1, len, outFile);
fputc('\n', outFile);
}
- for (cpp = warning; *cpp; cpp++)
+ for (const char **cpp = warning; *cpp; cpp++)
fprintf(outFile, "%s\n", *cpp);
/*