pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/cad/gschem Move a variable declaration to the beginnin...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/520e1b5e45f5
branches:  trunk
changeset: 507694:520e1b5e45f5
user:      dmcmahill <dmcmahill%pkgsrc.org@localhost>
date:      Mon Feb 06 22:23:29 2006 +0000

description:
Move a variable declaration to the beginning of the function.  Should
keep gcc-2.95 happy.  Fix applied upstream too.

diffstat:

 cad/gschem/distinfo         |   3 ++-
 cad/gschem/patches/patch-aa |  21 +++++++++++++++++++++
 2 files changed, 23 insertions(+), 1 deletions(-)

diffs (36 lines):

diff -r 9fd728d88b9b -r 520e1b5e45f5 cad/gschem/distinfo
--- a/cad/gschem/distinfo       Mon Feb 06 22:17:59 2006 +0000
+++ b/cad/gschem/distinfo       Mon Feb 06 22:23:29 2006 +0000
@@ -1,5 +1,6 @@
-$NetBSD: distinfo,v 1.16 2006/01/25 01:51:35 dmcmahill Exp $
+$NetBSD: distinfo,v 1.17 2006/02/06 22:23:29 dmcmahill Exp $
 
 SHA1 (geda/geda-gschem-20060123.tar.gz) = 6163477230c0403cc234f2407b11e2eecc1381ce
 RMD160 (geda/geda-gschem-20060123.tar.gz) = 9da64ea7397da9e34c296467003a6af70e90921d
 Size (geda/geda-gschem-20060123.tar.gz) = 1652829 bytes
+SHA1 (patch-aa) = 3c3743fdca61dd549c035aec030a6dc0bf4de4c6
diff -r 9fd728d88b9b -r 520e1b5e45f5 cad/gschem/patches/patch-aa
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/cad/gschem/patches/patch-aa       Mon Feb 06 22:23:29 2006 +0000
@@ -0,0 +1,21 @@
+$NetBSD: patch-aa,v 1.9 2006/02/06 22:23:29 dmcmahill Exp $
+
+--- src/x_image.c.orig 2006-01-24 03:24:02.000000000 +0000
++++ src/x_image.c
+@@ -205,6 +205,7 @@ void x_image_lowlevel(TOPLEVEL * w_curre
+   GdkPixbuf *pixbuf;
+   char *filetype;
+ #endif
++  float prop;
+ 
+   width = w_current->image_width;
+   height = w_current->image_height;
+@@ -227,7 +228,7 @@ void x_image_lowlevel(TOPLEVEL * w_curre
+   page_center_top = save_page_top + (page_height / 2);
+ 
+   /* Preserve proportions */
+-  float prop = (float) width / height;
++  prop = (float) width / height;
+   if (page_width > page_height) {
+     page_height = (page_width / prop);
+   } else {



Home | Main Index | Thread Index | Old Index