diff options
author | joerg <joerg@pkgsrc.org> | 2012-12-20 21:51:38 +0000 |
---|---|---|
committer | joerg <joerg@pkgsrc.org> | 2012-12-20 21:51:38 +0000 |
commit | 28b69f08b92df56a619b28810b9b2fb6ae158c53 (patch) | |
tree | 1e1ace283b5f82eefbc36d1581cd0dfe4e6e76fc | |
parent | 1358a1fb0e2a58dba57b79e70e0d807ff20554c0 (diff) | |
download | pkgsrc-28b69f08b92df56a619b28810b9b2fb6ae158c53.tar.gz |
Use void for xx.
-rw-r--r-- | graphics/pgraf/distinfo | 3 | ||||
-rw-r--r-- | graphics/pgraf/patches/patch-pgmain_pg.c | 41 |
2 files changed, 43 insertions, 1 deletions
diff --git a/graphics/pgraf/distinfo b/graphics/pgraf/distinfo index 04d165ca03b..f12b8b2a15b 100644 --- a/graphics/pgraf/distinfo +++ b/graphics/pgraf/distinfo @@ -1,4 +1,4 @@ -$NetBSD: distinfo,v 1.4 2008/06/12 02:14:32 joerg Exp $ +$NetBSD: distinfo,v 1.5 2012/12/20 21:51:38 joerg Exp $ SHA1 (pgraf-20010131.tar.gz) = 0f1fb3ad580de94eafb364aecc0d7befa8151959 RMD160 (pgraf-20010131.tar.gz) = d3dd470b25e31cbda94b4f4602f8853f32a5c84b @@ -7,3 +7,4 @@ SHA1 (patch-aa) = f8aaa250906c775c8366580d55560f66a6403d7f SHA1 (patch-ab) = 5d93154523125cc532a75a68bc76e05b807b4d66 SHA1 (patch-ac) = 869bfd788f5bf6419feee4a655747f1c22ecd0be SHA1 (patch-ad) = e2b36dd9b214a1decc536f81206abc1925ec134f +SHA1 (patch-pgmain_pg.c) = d80b6e3f8f762ae4465191147d988f00e0cf789d diff --git a/graphics/pgraf/patches/patch-pgmain_pg.c b/graphics/pgraf/patches/patch-pgmain_pg.c new file mode 100644 index 00000000000..f06937106cc --- /dev/null +++ b/graphics/pgraf/patches/patch-pgmain_pg.c @@ -0,0 +1,41 @@ +$NetBSD: patch-pgmain_pg.c,v 1.1 2012/12/20 21:51:39 joerg Exp $ + +--- pgmain/pg.c.orig 2012-12-20 18:24:02.000000000 +0000 ++++ pgmain/pg.c +@@ -41,7 +41,8 @@ static float baddata; /* actual ba + static float dott(),cinty(),cintx(),maglim(); + static void panic(),rest(),draw(),mark(),conv(),norm(),mlabel(); + static int survey(),cside(),insect(),conto(),vplot(),axes(), +- grid(),kfill(),nfill(),pfill(),xx(),pdraw(); ++ grid(),kfill(),nfill(),pfill(),pdraw(); ++static void xx(); + + /* global declarations -- for communication with the low level routines */ + FILE *pgraf; /* metacode input file */ +@@ -1263,7 +1264,7 @@ float zv[6],z,vl[2][4],xs,xt,ys,yt,rys,r + } + } + +-static int xx(ax,ay,bx,by,ltype) ++static void xx(ax,ay,bx,by,ltype) + int ltype; + float ax,ay, bx,by; + { +@@ -1292,7 +1293,7 @@ float ax,ay, bx,by; + by>=y1 &&bx<=x2 && by<=y2) { + pgmove(ax,ay); + pgdraw(bx,by,ltype); +- return(0); ++ return; + } + whr = insect(ax,ay,bx,by); + +@@ -1314,7 +1315,7 @@ float ax,ay, bx,by; + y -= ((cy)/(cx))*(outx-x1); + } + if(x>x2|| y>y2 || x<x1 || y<y1) return; +- if (whr == 10) return(0); ++ if (whr == 10) return; + if(ax>x2 || ax<x1 || ay<y1 || ay>y2){ + pgmove(x,y); + pgdraw(bx,by,ltype); |