summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--tools/bdf2bmp.c6
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);
97void dwrite(const void *ptrP, int n, FILE *outP); 97void dwrite(const void *ptrP, int n, FILE *outP);
98void writeBmpFile(unsigned char *bitmapP, int spacing, int colchar, FILE *bmpP); 98void writeBmpFile(unsigned char *bitmapP, int spacing, int colchar, FILE *bmpP);
99void assignBitmap(unsigned char *bitmapP, char *glyphP, int sizeglyphP, struct boundingbox glyph, int dw); 99void assignBitmap(unsigned char *bitmapP, char *glyphP, int sizeglyphP, struct boundingbox glyph, int dw);
100int getline(char* lineP, int max, FILE* inputP); 100int getfontline(char* lineP, int max, FILE* inputP);
101unsigned char *readBdfFile(unsigned char *bitmapP, FILE *readP); 101unsigned char *readBdfFile(unsigned char *bitmapP, FILE *readP);
102void printhelp(void); 102void printhelp(void);
103int main(int argc, char *argv[]); 103int 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 */
457int getline(char* lineP, int max, FILE* inputP){ 457int 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");