diff options
author | giraffedata <giraffedata@9d0c8265-081b-0410-96cb-a4ca84ce46f8> | 2007-08-25 21:07:47 +0000 |
---|---|---|
committer | giraffedata <giraffedata@9d0c8265-081b-0410-96cb-a4ca84ce46f8> | 2007-08-25 21:07:47 +0000 |
commit | c16ec0e052580f85d9241f48580ce6e7183abca9 (patch) | |
tree | 0621c18adbde173e0962df0dd3db8daa32899bea | |
parent | 2343d5167dc6e1c51b88f6c56051488914a677e3 (diff) | |
download | netpbm-mirror-c16ec0e052580f85d9241f48580ce6e7183abca9.tar.gz netpbm-mirror-c16ec0e052580f85d9241f48580ce6e7183abca9.tar.xz netpbm-mirror-c16ec0e052580f85d9241f48580ce6e7183abca9.zip |
cleanup
git-svn-id: http://svn.code.sf.net/p/netpbm/code/trunk@382 9d0c8265-081b-0410-96cb-a4ca84ce46f8
-rw-r--r-- | editor/pnmconvol.c | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/editor/pnmconvol.c b/editor/pnmconvol.c index 0bf44ce3..365f7931 100644 --- a/editor/pnmconvol.c +++ b/editor/pnmconvol.c @@ -32,7 +32,7 @@ struct cmdlineInfo { static void parseCommandLine(int argc, char ** argv, - struct cmdlineInfo *cmdlineP) { + struct cmdlineInfo * const cmdlineP) { /*---------------------------------------------------------------------------- parse program command line described in Unix standard form by argc and argv. Return the information in the options as *cmdlineP. @@ -83,23 +83,23 @@ parseCommandLine(int argc, char ** argv, /* Macros to verify that r,g,b values are within proper range */ #define CHECK_GRAY \ - if ( tempgsum < 0L ) g = 0; \ - else if ( tempgsum > maxval ) g = maxval; \ + if (tempgsum < 0L) g = 0; \ + else if (tempgsum > maxval) g = maxval; \ else g = tempgsum; #define CHECK_RED \ - if ( temprsum < 0L ) r = 0; \ - else if ( temprsum > maxval ) r = maxval; \ + if (temprsum < 0L) r = 0; \ + else if (temprsum > maxval) r = maxval; \ else r = temprsum; #define CHECK_GREEN \ - if ( tempgsum < 0L ) g = 0; \ - else if ( tempgsum > maxval ) g = maxval; \ + if (tempgsum < 0L) g = 0; \ + else if (tempgsum > maxval) g = maxval; \ else g = tempgsum; #define CHECK_BLUE \ - if ( tempbsum < 0L ) b = 0; \ - else if ( tempbsum > maxval ) b = maxval; \ + if (tempbsum < 0L) b = 0; \ + else if (tempbsum > maxval) b = maxval; \ else b = tempbsum; struct convolveType { @@ -109,7 +109,7 @@ struct convolveType { void (*pgmConvolver)(const float ** const weights); }; -static FILE* ifp; +static FILE * ifp; static int crows, ccols, ccolso2, crowso2; static int cols, rows; static xelval maxval; |