--- OLD/ppm/imgtoppm.c Thu Jan 1 00:00:00 1970 +++ NEW/ppm/imgtoppm.c Thu Jan 1 00:00:00 1970 @@ -60,7 +60,7 @@ if ( fread( buf, 8, 1, ifp ) != 1 ) pm_error( "bad attributes header" ); buf[8] = '\0'; - len = atoi( buf ); + len = atoi( (void *)buf ); if ( fread( buf, len, 1, ifp ) != 1 ) pm_error( "bad attributes buf" ); buf[len] = '\0'; @@ -76,7 +76,7 @@ if ( fread( buf, 8, 1, ifp ) != 1 ) pm_error( "bad colormap header" ); buf[8] = '\0'; - len = atoi( buf ); + len = atoi( (void *)buf ); if ( fread( buf, len, 1, ifp ) != 1 ) pm_error( "bad colormap buf" ); if ( cmaplen * 3 != len ) @@ -99,7 +99,7 @@ if ( fread( buf, 8, 1, ifp ) != 1 ) pm_error( "bad pixel data header" ); buf[8] = '\0'; - len = atoi( buf ); + len = atoi( (void *)buf ); if ( len != cols * rows ) pm_message( "pixel data length (%d) does not match image size (%d)",