diff options
author | giraffedata <giraffedata@9d0c8265-081b-0410-96cb-a4ca84ce46f8> | 2009-04-28 01:43:45 +0000 |
---|---|---|
committer | giraffedata <giraffedata@9d0c8265-081b-0410-96cb-a4ca84ce46f8> | 2009-04-28 01:43:45 +0000 |
commit | dbdc0476c3ed226ccba2750b09e25887ba12b2bb (patch) | |
tree | b80cbcdbd9c08008b5b84125180f8a3e9c8a190e /editor | |
parent | 7258bf2ba30955d20dc0ba361df7c2de43704f5a (diff) | |
download | netpbm-mirror-dbdc0476c3ed226ccba2750b09e25887ba12b2bb.tar.gz netpbm-mirror-dbdc0476c3ed226ccba2750b09e25887ba12b2bb.tar.xz netpbm-mirror-dbdc0476c3ed226ccba2750b09e25887ba12b2bb.zip |
Release 10.35.63
git-svn-id: http://svn.code.sf.net/p/netpbm/code/stable@902 9d0c8265-081b-0410-96cb-a4ca84ce46f8
Diffstat (limited to 'editor')
-rwxr-xr-x | editor/ppmfade | 2 | ||||
-rwxr-xr-x | editor/ppmquantall | 4 |
2 files changed, 4 insertions, 2 deletions
diff --git a/editor/ppmfade b/editor/ppmfade index 2507eaf2..9bd122e9 100755 --- a/editor/ppmfade +++ b/editor/ppmfade @@ -35,6 +35,8 @@ my $mode = $SPREAD; # default fading mode # # Check those command line args. # +sub usage(); + if (@ARGV == 0) { usage(); } diff --git a/editor/ppmquantall b/editor/ppmquantall index af1ce22c..bc314d4d 100755 --- a/editor/ppmquantall +++ b/editor/ppmquantall @@ -62,8 +62,8 @@ files=($@) # To be robust, we need to use Pnmfile to get that information, or # Put this program in C and use ppm_readppminit(). -set widths=() -set heights=() +widths=() +heights=() for i in ${files[@]}; do widths=(${widths[*]} `grep -v '^#' $i | sed '1d; s/ .*//; 2q'`) |