Loading drivers/video/logo/pnmtologo.c +334 −333 Original line number Diff line number Diff line /* * Convert a logo in ASCII PNM format to C source suitable for inclusion in * the Linux kernel Loading Loading @@ -106,7 +105,8 @@ static unsigned int get_number(FILE *fp) val = 10*val+c-'0'; /* some PBM are 'broken'; GiMP for example exports a PBM without space * between the digits. This is Ok cause we know a PBM can only have a '1' * or a '0' for the digit. */ * or a '0' for the digit. */ if (is_plain_pbm) break; c = fgetc(fp); Loading @@ -119,6 +119,7 @@ static unsigned int get_number(FILE *fp) static unsigned int get_number255(FILE *fp, unsigned int maxval) { unsigned int val = get_number(fp); return (255*val+maxval/2)/maxval; } Loading Loading
drivers/video/logo/pnmtologo.c +334 −333 Original line number Diff line number Diff line /* * Convert a logo in ASCII PNM format to C source suitable for inclusion in * the Linux kernel Loading Loading @@ -106,7 +105,8 @@ static unsigned int get_number(FILE *fp) val = 10*val+c-'0'; /* some PBM are 'broken'; GiMP for example exports a PBM without space * between the digits. This is Ok cause we know a PBM can only have a '1' * or a '0' for the digit. */ * or a '0' for the digit. */ if (is_plain_pbm) break; c = fgetc(fp); Loading @@ -119,6 +119,7 @@ static unsigned int get_number(FILE *fp) static unsigned int get_number255(FILE *fp, unsigned int maxval) { unsigned int val = get_number(fp); return (255*val+maxval/2)/maxval; } Loading