diff options
-rw-r--r-- | tools/bdf2bmp.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tools/bdf2bmp.c b/tools/bdf2bmp.c index 5422a65e99..a00b39a5f3 100644 --- a/tools/bdf2bmp.c +++ b/tools/bdf2bmp.c | |||
@@ -97,7 +97,7 @@ void checkEndian(void); | |||
97 | void dwrite(const void *ptrP, int n, FILE *outP); | 97 | void dwrite(const void *ptrP, int n, FILE *outP); |
98 | void writeBmpFile(unsigned char *bitmapP, int spacing, int colchar, FILE *bmpP); | 98 | void writeBmpFile(unsigned char *bitmapP, int spacing, int colchar, FILE *bmpP); |
99 | void assignBitmap(unsigned char *bitmapP, char *glyphP, int sizeglyphP, struct boundingbox glyph, int dw); | 99 | void assignBitmap(unsigned char *bitmapP, char *glyphP, int sizeglyphP, struct boundingbox glyph, int dw); |
100 | int getline(char* lineP, int max, FILE* inputP); | 100 | int getfontline(char* lineP, int max, FILE* inputP); |
101 | unsigned char *readBdfFile(unsigned char *bitmapP, FILE *readP); | 101 | unsigned char *readBdfFile(unsigned char *bitmapP, FILE *readP); |
102 | void printhelp(void); | 102 | void printhelp(void); |
103 | int main(int argc, char *argv[]); | 103 | int main(int argc, char *argv[]); |
@@ -454,7 +454,7 @@ void assignBitmap(unsigned char *bitmapP, char *glyphP, int sizeglyphP, struct b | |||
454 | /* | 454 | /* |
455 | * read oneline from textfile | 455 | * read oneline from textfile |
456 | */ | 456 | */ |
457 | int getline(char* lineP, int max, FILE* inputP){ | 457 | int getfontline(char* lineP, int max, FILE* inputP){ |
458 | if (fgets(lineP, max, inputP) == NULL) | 458 | if (fgets(lineP, max, inputP) == NULL) |
459 | return 0; | 459 | return 0; |
460 | else | 460 | else |
@@ -479,7 +479,7 @@ unsigned char *readBdfFile(unsigned char *bitmapP, FILE *readP){ | |||
479 | static int bdfflag = OFF; /* the given bdf-file is valid or not */ | 479 | static int bdfflag = OFF; /* the given bdf-file is valid or not */ |
480 | 480 | ||
481 | while(1){ | 481 | while(1){ |
482 | length = getline(sP, LINE_CHARMAX, readP); | 482 | length = getfontline(sP, LINE_CHARMAX, readP); |
483 | if((bdfflag == OFF) && (length == 0)){ | 483 | if((bdfflag == OFF) && (length == 0)){ |
484 | /* given input-file is not a bdf-file */ | 484 | /* given input-file is not a bdf-file */ |
485 | printf("error: input-file is not a bdf file\n"); | 485 | printf("error: input-file is not a bdf file\n"); |