diff options
author | Peter Pentchev <roam@FreeBSD.org> | 2001-04-17 08:36:27 +0000 |
---|---|---|
committer | Peter Pentchev <roam@FreeBSD.org> | 2001-04-17 08:36:27 +0000 |
commit | 3f18ebc9e5ff342a004552fe8d6fa2344db65f14 (patch) | |
tree | 4fa20a67684c51cbe829b79b11b2d8fbd781a663 /graphics/netpbm/files/patch-ce | |
parent | add nickle (diff) |
Update to 9.12.
PR: 26122
Submitted by: Ports Fury
Notes
Notes:
svn path=/head/; revision=41508
Diffstat (limited to 'graphics/netpbm/files/patch-ce')
-rw-r--r-- | graphics/netpbm/files/patch-ce | 15 |
1 files changed, 8 insertions, 7 deletions
diff --git a/graphics/netpbm/files/patch-ce b/graphics/netpbm/files/patch-ce index aab01a30a887..21b465f8955a 100644 --- a/graphics/netpbm/files/patch-ce +++ b/graphics/netpbm/files/patch-ce @@ -1,5 +1,5 @@ ---- ppm/ppmchange.c.orig Mon Jan 8 05:12:30 2001 -+++ ppm/ppmchange.c Sat Jan 13 00:00:00 2001 +--- ppm/ppmchange.c.orig Tue Mar 20 12:28:14 2001 ++++ ppm/ppmchange.c Tue Mar 27 00:00:00 2001 @@ -14,6 +14,7 @@ */ @@ -8,9 +8,9 @@ #define TCOLS 256 #define SQRT3 1.73205080756887729352 /* The square root of 3 */ -@@ -53,9 +54,19 @@ +@@ -50,10 +51,20 @@ - char * remainder_color; /* value of -remainder option */ + unsigned int option_def_index; + /* Create the OptStruct structure describing our options */ + #define OPTENTRY(shortvalue,longvalue,typevalue,outputvalue,flagvalue) {\ @@ -23,12 +23,13 @@ + } option_def_index = 0; /* incremented by OPTENTRY */ OPTENTRY(0, "closeness", OPT_INT, &cmdlineP->closeness, 0); - OPTENTRY(0, "remainder", OPT_STRING, &remainder_color, 0); + OPTENTRY(0, "remainder", OPT_STRING, + &cmdlineP->remainder_colorname, 0); + option_def[option_def_index].type = OPT_END; /* Set the defaults */ cmdlineP->closeness = 0; -@@ -65,7 +76,7 @@ +@@ -63,7 +74,7 @@ opt.short_allowed = FALSE; /* We have no short (old-fashioned) options */ opt.allowNegNum = FALSE; /* We may have parms that are negative numbers */ @@ -36,4 +37,4 @@ + optParseOptions2(&argc, argv, opt, 0); /* Uses and sets argc, argv, and some of *cmdlineP and others. */ - if (remainder_color) { + if ((argc-1) % 2 == 0) |