about summary refs log tree commit diff
path: root/editor/ppmbrighten.c
diff options
context:
space:
mode:
Diffstat (limited to 'editor/ppmbrighten.c')
-rw-r--r--editor/ppmbrighten.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/editor/ppmbrighten.c b/editor/ppmbrighten.c
index 93649082..9bcf7bb5 100644
--- a/editor/ppmbrighten.c
+++ b/editor/ppmbrighten.c
@@ -11,6 +11,7 @@
 ** implied warranty.
 */
 
+#include "pm_c_util.h"
 #include "ppm.h"
 #include "shhopt.h"
 #include "mallocvar.h"
@@ -21,7 +22,7 @@ struct cmdlineInfo {
     /* All the information the user supplied in the command line,
        in a form easy for the program to use.
     */
-    const char *inputFilespec;  /* '-' if stdin */
+    const char * inputFilespec;  /* '-' if stdin */
     float saturation;
     float value;
     unsigned int normalize;
@@ -29,10 +30,9 @@ struct cmdlineInfo {
 
 
 
-
 static void
-parseCommandLine (int argc, char ** argv,
-                  struct cmdlineInfo *cmdlineP) {
+parseCommandLine(int argc, char ** argv,
+                 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.  
@@ -270,9 +270,9 @@ int
 main(int argc, char * argv[]) {
 
     struct cmdlineInfo cmdline;
-    FILE *ifP;
+    FILE * ifP;
     pixval minValue, maxValue;
-    pixel *pixelrow;
+    pixel * pixelrow;
     pixval maxval;
     int rows, cols, format, row;