diff options
author | giraffedata <giraffedata@9d0c8265-081b-0410-96cb-a4ca84ce46f8> | 2009-12-19 03:32:45 +0000 |
---|---|---|
committer | giraffedata <giraffedata@9d0c8265-081b-0410-96cb-a4ca84ce46f8> | 2009-12-19 03:32:45 +0000 |
commit | 0dd9f22f581baa8e479feb37d4693430b77fc4d3 (patch) | |
tree | d108695c5c4cfaa8157c5fea750d51e46d365d90 /editor/pnmsmooth.c | |
parent | e2b5967ae3f0cdb2833f2ecc425966da9d4db10b (diff) | |
download | netpbm-mirror-0dd9f22f581baa8e479feb37d4693430b77fc4d3.tar.gz netpbm-mirror-0dd9f22f581baa8e479feb37d4693430b77fc4d3.tar.xz netpbm-mirror-0dd9f22f581baa8e479feb37d4693430b77fc4d3.zip |
cleanup
git-svn-id: http://svn.code.sf.net/p/netpbm/code/trunk@1059 9d0c8265-081b-0410-96cb-a4ca84ce46f8
Diffstat (limited to 'editor/pnmsmooth.c')
-rw-r--r-- | editor/pnmsmooth.c | 15 |
1 files changed, 8 insertions, 7 deletions
diff --git a/editor/pnmsmooth.c b/editor/pnmsmooth.c index fa525e14..4721d585 100644 --- a/editor/pnmsmooth.c +++ b/editor/pnmsmooth.c @@ -45,7 +45,7 @@ struct cmdlineInfo { static void -parseCommandLine (int argc, char ** argv, +parseCommandLine (int argc, const char ** argv, struct cmdlineInfo *cmdlineP) { /*---------------------------------------------------------------------------- parse program command line described in Unix standard form by argc @@ -82,7 +82,7 @@ parseCommandLine (int argc, char ** argv, opt.short_allowed = FALSE; /* We have no short (old-fashioned) options */ opt.allowNegNum = FALSE; /* We have no parms that are negative numbers */ - optParseOptions3( &argc, argv, opt, sizeof(opt), 0 ); + optParseOptions3(&argc, (char **)argv, opt, sizeof(opt), 0); /* Uses and sets argc, argv, and some of *cmdline_p and others. */ if (!widthSpec) @@ -153,13 +153,14 @@ writeConvolutionImage(FILE * const cofp, /* normalizing factor for our convolution matrix */ xelval const g = rows * cols + 1; /* weight of all pixels in our convolution matrix */ + int row; - xel *outputrow; + xel * outputrow; if (convmaxval > PNM_OVERALLMAXVAL) pm_error("The convolution matrix is too large. " - "Width x Height x 2\n" - "must not exceed %d and it is %d.", + "Width x Height x 2 " + "must not exceed %u and it is %u.", PNM_OVERALLMAXVAL, convmaxval); pnm_writepnminit(cofp, cols, rows, convmaxval, format, 0); @@ -177,13 +178,13 @@ writeConvolutionImage(FILE * const cofp, int -main(int argc, char ** argv) { +main(int argc, const char ** argv) { struct cmdlineInfo cmdline; FILE * convFileP; const char * tempfileName; - pnm_init(&argc, argv); + pm_proginit(&argc, argv); parseCommandLine(argc, argv, &cmdline); |