From f65784801c651d16108a0bc4f37d9fa4d4233285 Mon Sep 17 00:00:00 2001 From: giraffedata Date: Tue, 15 Jan 2019 16:33:51 +0000 Subject: cleanup git-svn-id: http://svn.code.sf.net/p/netpbm/code/trunk@3508 9d0c8265-081b-0410-96cb-a4ca84ce46f8 --- editor/pambrighten.c | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) (limited to 'editor/pambrighten.c') diff --git a/editor/pambrighten.c b/editor/pambrighten.c index 46020404..462c5efe 100644 --- a/editor/pambrighten.c +++ b/editor/pambrighten.c @@ -130,10 +130,7 @@ changeGrayPix(tuple const tupleval, sample const maxval) { double const oldGray = (double) tupleval[0] / maxval; - - double newGray; - - newGray = MIN(1.0, MAX(0.0, oldGray * valchange)); + double const newGray = MIN(1.0, MAX(0.0, oldGray * valchange)); tupleval[0] = ROUNDU(newGray * maxval); } @@ -256,7 +253,7 @@ main(int argc, const char *argv[]) { /* - This was derived from ppmbrighten code written by Jef Poskanzer and + This was derived from ppmbrighten code written by Jef Poskanzer and Brian Moffet. Updated by Willem van Schaik to support PAM. Copyright (C) 1989 by Jef Poskanzer. -- cgit 1.4.1