summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlexander Levin <al.le@rockbox.org>2009-03-05 23:09:19 +0000
committerAlexander Levin <al.le@rockbox.org>2009-03-05 23:09:19 +0000
commit5aca36115f34e5151b9c570adb568b5b4080a042 (patch)
treef6d0818dada89554b1075d51ae6344f6870ef9b4
parent2bbfd6f4ff2b650df94363400de97e9b7729defe (diff)
downloadrockbox-5aca36115f34e5151b9c570adb568b5b4080a042.tar.gz
rockbox-5aca36115f34e5151b9c570adb568b5b4080a042.tar.bz2
rockbox-5aca36115f34e5151b9c570adb568b5b4080a042.zip
Use plaint int here since it's also used for the other fields
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@20211 a1c6a512-1295-4272-9138-f99709370657
-rw-r--r--tools/convbdf.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/tools/convbdf.c b/tools/convbdf.c
index b566d2cd2e..437281c14a 100644
--- a/tools/convbdf.c
+++ b/tools/convbdf.c
@@ -48,7 +48,7 @@ struct font {
int bits_size; /* # words of bitmap_t bits*/
/* unused by runtime system, read in by convbdf */
- unsigned int nchars; /* number of different glyphs */
+ int nchars; /* number of different glyphs */
unsigned int* offrot; /* offsets into rotated bitmap data*/
char * name; /* font name*/
char * facename; /* facename of font*/
@@ -329,7 +329,7 @@ struct font* bdf_read_font(char *path)
}
if (pf->num_clipped > 0) {
- fprintf(stderr, "Warning: %d characters out of %u were clipped "
+ fprintf(stderr, "Warning: %d characters out of %d were clipped "
"(%d at ascent, %d at descent)\n",
pf->num_clipped, pf->nchars,
pf->num_clipped_ascent, pf->num_clipped_descent);
@@ -412,7 +412,7 @@ int bdf_read_header(FILE *fp, struct font* pf)
continue;
}
if (isprefix(buf, "CHARS ")) {
- if (sscanf(buf, "CHARS %u", &pf->nchars) != 1) {
+ if (sscanf(buf, "CHARS %d", &pf->nchars) != 1) {
fprintf(stderr, "Error: bad 'CHARS'\n");
return 0;
}