From 56b31f99df72a95ef7b761ff92e1d2788d9713f6 Mon Sep 17 00:00:00 2001 From: giraffedata Date: Mon, 9 Oct 2023 18:11:21 +0000 Subject: cleanup git-svn-id: http://svn.code.sf.net/p/netpbm/code/trunk@4739 9d0c8265-081b-0410-96cb-a4ca84ce46f8 --- lib/pm.h | 22 +++++++++++++++------- lib/pmfileio.c | 6 ++++-- 2 files changed, 19 insertions(+), 9 deletions(-) (limited to 'lib') diff --git a/lib/pm.h b/lib/pm.h index 8d5973eb..2a87aca1 100644 --- a/lib/pm.h +++ b/lib/pm.h @@ -111,13 +111,16 @@ extern int pm_plain_output; extern const char * pm_progname; void -pm_init(const char * const progname, unsigned int const flags); +pm_init(const char * const progname, + unsigned int const flags); void -pm_proginit(int * const argcP, const char * argv[]); +pm_proginit(int * const argcP, + const char ** const argv); void -pm_setMessage(int const newState, int * const oldStateP); +pm_setMessage(int const newState, + int * const oldStateP); int pm_getMessage(void); @@ -137,19 +140,23 @@ pm_make_tmpfile_fd(int * const fdP, const char ** const filenameP); void -pm_nextimage(FILE * const file, int * const eofP); +pm_nextimage(FILE * const file, + int * const eofP); /* Variable-sized arrays definitions. */ char** -pm_allocarray (int const cols, int const rows, int const size ); +pm_allocarray (int const cols, + int const rows, + int const size ); void * pm_allocrow(unsigned int const cols, unsigned int const size); void -pm_freearray (char** const its, int const rows); +pm_freearray (char ** const its, + int const rows); void pm_freerow(void * const row); @@ -413,7 +420,8 @@ pm_seek2(FILE * const fileP, unsigned int const fileposSize); void -pm_seek(FILE * const fileP, unsigned long filepos); +pm_seek(FILE * const fileP, + unsigned long const filepos); enum pm_check_code { PM_CHECK_OK, diff --git a/lib/pmfileio.c b/lib/pmfileio.c index 5d6d9bc1..65d61dff 100644 --- a/lib/pmfileio.c +++ b/lib/pmfileio.c @@ -1152,7 +1152,8 @@ pm_seek2(FILE * const fileP, void -pm_seek(FILE * const fileP, unsigned long filepos) { +pm_seek(FILE * const fileP, + unsigned long const filepos) { /*---------------------------------------------------------------------------- -----------------------------------------------------------------------------*/ @@ -1166,7 +1167,8 @@ pm_seek(FILE * const fileP, unsigned long filepos) { void -pm_nextimage(FILE * const file, int * const eofP) { +pm_nextimage(FILE * const file, + int * const eofP) { /*---------------------------------------------------------------------------- Position the file 'file' to the next image in the stream, assuming it is now positioned just after the current image. I.e. read off any white -- cgit 1.4.1