diff options
author | giraffedata <giraffedata@9d0c8265-081b-0410-96cb-a4ca84ce46f8> | 2023-08-30 17:58:45 +0000 |
---|---|---|
committer | giraffedata <giraffedata@9d0c8265-081b-0410-96cb-a4ca84ce46f8> | 2023-08-30 17:58:45 +0000 |
commit | 10d917d2e18c811676b0c2f00e6c2a88b666918c (patch) | |
tree | f4f1301da468ec6339a6c68e733226c2013a41e0 /lib | |
parent | 0a03ff5e2b6b1a10a36009ef131a6671e2357931 (diff) | |
download | netpbm-mirror-10d917d2e18c811676b0c2f00e6c2a88b666918c.tar.gz netpbm-mirror-10d917d2e18c811676b0c2f00e6c2a88b666918c.tar.xz netpbm-mirror-10d917d2e18c811676b0c2f00e6c2a88b666918c.zip |
whitespace
git-svn-id: http://svn.code.sf.net/p/netpbm/code/trunk@4623 9d0c8265-081b-0410-96cb-a4ca84ce46f8
Diffstat (limited to 'lib')
-rw-r--r-- | lib/libpbm1.c | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/lib/libpbm1.c b/lib/libpbm1.c index 49ab7fdf..d3403311 100644 --- a/lib/libpbm1.c +++ b/lib/libpbm1.c @@ -14,7 +14,7 @@ offset stuff. */ #define _FILE_OFFSET_BITS 64 -#define _LARGE_FILES +#define _LARGE_FILES #include <stdio.h> @@ -59,7 +59,7 @@ pbm_nextimage(FILE *file, int * const eofP) { void pbm_check(FILE * const fileP, - enum pm_check_type const checkType, + enum pm_check_type const checkType, int const format, int const cols, int const rows, @@ -69,14 +69,14 @@ pbm_check(FILE * const fileP, pm_error("Invalid number of rows passed to pbm_check(): %d", rows); if (cols < 0) pm_error("Invalid number of columns passed to pbm_check(): %d", cols); - + if (checkType != PM_CHECK_BASIC) { if (retvalP) *retvalP = PM_CHECK_UNKNOWN_TYPE; } else if (format != RPBM_FORMAT) { if (retvalP) *retvalP = PM_CHECK_UNCHECKABLE; - } else { + } else { pm_filepos const bytesPerRow = (cols+7)/8; pm_filepos const needRasterSize = rows * bytesPerRow; pm_check(fileP, checkType, needRasterSize, retvalP); @@ -179,3 +179,6 @@ pbm_backgroundbitrow(unsigned const char * const packedBits, } return retval; } + + + |