FS#12764 - bdf2bmp fails to compile
Change-Id: I8e5ea31f0b529c0160ce6bdaa21a7d3dfe6c391d
This commit is contained in:
parent
7a7d7a2f4c
commit
3d35f14351
1 changed files with 3 additions and 3 deletions
|
@ -97,7 +97,7 @@ void checkEndian(void);
|
|||
void dwrite(const void *ptrP, int n, FILE *outP);
|
||||
void writeBmpFile(unsigned char *bitmapP, int spacing, int colchar, FILE *bmpP);
|
||||
void assignBitmap(unsigned char *bitmapP, char *glyphP, int sizeglyphP, struct boundingbox glyph, int dw);
|
||||
int getline(char* lineP, int max, FILE* inputP);
|
||||
int getfontline(char* lineP, int max, FILE* inputP);
|
||||
unsigned char *readBdfFile(unsigned char *bitmapP, FILE *readP);
|
||||
void printhelp(void);
|
||||
int main(int argc, char *argv[]);
|
||||
|
@ -454,7 +454,7 @@ void assignBitmap(unsigned char *bitmapP, char *glyphP, int sizeglyphP, struct b
|
|||
/*
|
||||
* read oneline from textfile
|
||||
*/
|
||||
int getline(char* lineP, int max, FILE* inputP){
|
||||
int getfontline(char* lineP, int max, FILE* inputP){
|
||||
if (fgets(lineP, max, inputP) == NULL)
|
||||
return 0;
|
||||
else
|
||||
|
@ -479,7 +479,7 @@ unsigned char *readBdfFile(unsigned char *bitmapP, FILE *readP){
|
|||
static int bdfflag = OFF; /* the given bdf-file is valid or not */
|
||||
|
||||
while(1){
|
||||
length = getline(sP, LINE_CHARMAX, readP);
|
||||
length = getfontline(sP, LINE_CHARMAX, readP);
|
||||
if((bdfflag == OFF) && (length == 0)){
|
||||
/* given input-file is not a bdf-file */
|
||||
printf("error: input-file is not a bdf file\n");
|
||||
|
|
Loading…
Reference in a new issue