diff options
author | giraffedata <giraffedata@9d0c8265-081b-0410-96cb-a4ca84ce46f8> | 2023-10-07 05:12:45 +0000 |
---|---|---|
committer | giraffedata <giraffedata@9d0c8265-081b-0410-96cb-a4ca84ce46f8> | 2023-10-07 05:12:45 +0000 |
commit | 1bdb731976b708d57a322b0a103b635036041493 (patch) | |
tree | 5dde6ef6d6d4cfbc03557938fdc95c814cf24b6f /converter/pbm/brushtopbm.c | |
parent | 0818fcd8f2e625fca9a1bb8e57fa41f3265d7534 (diff) | |
download | netpbm-mirror-1bdb731976b708d57a322b0a103b635036041493.tar.gz netpbm-mirror-1bdb731976b708d57a322b0a103b635036041493.tar.xz netpbm-mirror-1bdb731976b708d57a322b0a103b635036041493.zip |
whitespace
git-svn-id: http://svn.code.sf.net/p/netpbm/code/trunk@4730 9d0c8265-081b-0410-96cb-a4ca84ce46f8
Diffstat (limited to 'converter/pbm/brushtopbm.c')
-rw-r--r-- | converter/pbm/brushtopbm.c | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/converter/pbm/brushtopbm.c b/converter/pbm/brushtopbm.c index ebd817be..63cd0d04 100644 --- a/converter/pbm/brushtopbm.c +++ b/converter/pbm/brushtopbm.c @@ -26,7 +26,7 @@ getinit(FILE * const ifP, bytesRead = fread(header, sizeof(header), 1, ifP); if (bytesRead !=1) - pm_error("Error reading header"); + pm_error("Error reading header"); if (header[0] != 1) pm_error("bad magic number 1"); @@ -49,6 +49,7 @@ validateEof(FILE * const ifP) { } + /* The routine for converting the raster closely resembles the pbm case of pnminvert. Input is padded up to 16 bit border. @@ -85,7 +86,7 @@ main(int argc, const char ** argv) { unsigned int i; size_t bytesRead; - bytesRead = fread (bitrow, 1, inRowBytes, ifP); + bytesRead = fread (bitrow, 1, inRowBytes, ifP); if (bytesRead != inRowBytes) pm_error("Error reading a row of data from brushfile"); @@ -102,6 +103,9 @@ main(int argc, const char ** argv) { pm_close(ifP); pm_close(stdout); - + return 0; } + + + |