diff options
-rw-r--r-- | lib/libpgm1.c | 5 | ||||
-rw-r--r-- | lib/libpm.c | 3 |
2 files changed, 4 insertions, 4 deletions
diff --git a/lib/libpgm1.c b/lib/libpgm1.c index 34cc6392..ff5b711b 100644 --- a/lib/libpgm1.c +++ b/lib/libpgm1.c @@ -50,13 +50,14 @@ void pgm_init(int * const argcP, char ** const argv) { - pbm_init( argcP, argv ); + pbm_init(argcP, argv); } void -pgm_nextimage(FILE * const file, int * const eofP) { +pgm_nextimage(FILE * const file, + int * const eofP) { pm_nextimage(file, eofP); } diff --git a/lib/libpm.c b/lib/libpm.c index a65a51a5..1ca7eba2 100644 --- a/lib/libpm.c +++ b/lib/libpm.c @@ -216,13 +216,12 @@ pm_error(const char format[], ...) { } -/* Variable-sized arrays. */ void * pm_allocrow(unsigned int const cols, unsigned int const size) { - char * itrow; + unsigned char * itrow; if (UINT_MAX / cols < size) pm_error("Arithmetic overflow multiplying %u by %u to get the " |