Update of /cvsroot/fink/experimental/dmacks/finkinfo
In directory vz-cvs-3.sog:/tmp/cvs-serv3964

Modified Files:
        xfig.info xfig.patch 
Log Message:
fix return-types for Xt callbacks


Index: xfig.info
===================================================================
RCS file: /cvsroot/fink/experimental/dmacks/finkinfo/xfig.info,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -d -r1.4 -r1.5
--- xfig.info   23 Sep 2012 20:23:05 -0000      1.4
+++ xfig.info   23 Sep 2012 20:47:46 -0000      1.5
@@ -4,6 +4,7 @@
 Distribution: 10.5, 10.6, 10.7
 BuildDepends: <<
        fink-package-precedence,
+       fontconfig2-dev,
        freetype219,
        libjpeg8,
        libpng15,
@@ -30,7 +31,7 @@
 Source2: mirror:debian:pool/main/x/%n/%n_3.2.5.b-3.debian.tar.gz
 Source2-MD5: 78667dff343cd1e17dd424eb0ab1d27a
 PatchFile: %n.patch
-PatchFile-MD5: fbf9038284a34123ff24c196ede141de
+PatchFile-MD5: 3708243117e77203c07ca90c262c1e88
 PatchScript: <<
  sed 's|@FINKPREFIX@|%p|g' < %{PatchFile} | patch -p1
  patch -p1 < ../debian/patches/35_CVE-2010-4262.patch
@@ -75,6 +76,11 @@
 
  Thanks to Martin Costabel for devising a fix for the 10.6 bug reported
  at http://www.mail-archive.com/[email protected]/msg31785.html
+
+ Fix return-codes for a bunch of Xt callback functions (thanks Snaggle
+ and MacPorts!). DMacks isn't sure this is "correct", since their uses
+ are documented to be (void) not (XtSomething)(0), but it builds and
+ doesn't crash, which seems good enough for us for now.
 <<
 DescPackaging: <<
  XFIGLIBDIR was set to %p/share/xfig.  Looks in /etc/printcap

Index: xfig.patch
===================================================================
RCS file: /cvsroot/fink/experimental/dmacks/finkinfo/xfig.patch,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -d -r1.3 -r1.4
--- xfig.patch  23 Sep 2012 20:23:05 -0000      1.3
+++ xfig.patch  23 Sep 2012 20:47:46 -0000      1.4
@@ -165,6 +165,27 @@
  {
      Widget        children[NCHILDREN];
      XEvent        event;
+diff -Nurd -x'*~' xfig.3.2.5b.orig/w_export.c xfig.3.2.5b/w_export.c
+--- xfig.3.2.5b.orig/w_export.c        2007-09-19 15:32:30.000000000 -0400
++++ xfig.3.2.5b/w_export.c     2012-09-23 16:38:06.000000000 -0400
+@@ -1016,7 +1016,7 @@
+     /* set global state */
+     print_hpgl_pcl_switch = state;
+ 
+-    return;
++    return 0;
+ }
+ 
+ static XtCallbackProc
+@@ -1038,7 +1038,7 @@
+     /* set global state */
+     hpgl_specified_font = state;
+ 
+-    return;
++    return 0;
+ }
+ 
+ void create_export_panel(Widget w)
 diff -Nurd -x'*~' xfig.3.2.5b.orig/w_keyboard.c xfig.3.2.5b/w_keyboard.c
 --- xfig.3.2.5b.orig/w_keyboard.c      2008-05-20 15:38:18.000000000 -0400
 +++ xfig.3.2.5b/w_keyboard.c   2012-09-23 14:43:32.000000000 -0400
@@ -177,3 +198,71 @@
  #define REG_NOERROR 0
  #endif
  
+diff -Nurd -x'*~' xfig.3.2.5b.orig/w_print.c xfig.3.2.5b/w_print.c
+--- xfig.3.2.5b.orig/w_print.c 2009-04-20 12:26:14.000000000 -0400
++++ xfig.3.2.5b/w_print.c      2012-09-23 16:38:06.000000000 -0400
+@@ -1185,7 +1185,7 @@
+     /* which button */
+     which = (int) XawToggleGetCurrent(w);
+     if (which == 0)           /* no buttons on, in transition so return now */
+-      return;
++      return 0;
+     if (which == 2)           /* "blank" button, invert state */
+       state = !state;
+ 
+@@ -1193,7 +1193,7 @@
+     print_all_layers = state;
+     update_figure_size();
+ 
+-    return;
++    return 0;
+ }
+ 
+ /* when user toggles between printing all or only active layers */
+@@ -1216,6 +1216,7 @@
+     /* set global */
+     bound_active_layers = state;
+     update_figure_size();
++    return 0;
+ }
+ 
+ 
+diff -Nurd -x'*~' xfig.3.2.5b.orig/w_util.c xfig.3.2.5b/w_util.c
+--- xfig.3.2.5b.orig/w_util.c  2009-03-30 11:52:38.000000000 -0400
++++ xfig.3.2.5b/w_util.c       2012-09-23 16:38:06.000000000 -0400
+@@ -710,7 +710,7 @@
+     /* keep track of which one the user is pressing */
+     cur_spin = widget;
+ 
+-    return;
++    return 0;
+ }
+ 
+ static XtEventHandler
+@@ -718,7 +718,7 @@
+ {
+     XtRemoveTimeOut(auto_spinid);
+ 
+-    return;
++    return 0;
+ }
+ 
+ static        XtTimerCallbackProc
+@@ -729,7 +729,7 @@
+     /* call the proper spinup/down routine */
+     XtCallCallbacks(cur_spin, XtNcallback, 0);
+ 
+-    return;
++    return 0;
+ }
+ 
+ /***************************/
+@@ -1412,7 +1412,7 @@
+     }
+     SetValues(w);
+ 
+-    return;
++    return 0;
+ }
+ 
+ /* assemble main window title bar with xfig title and (base) file name */


------------------------------------------------------------------------------
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://ad.doubleclick.net/clk;258768047;13503038;j?
http://info.appdynamics.com/FreeJavaPerformanceDownload.html
_______________________________________________
Fink-commits mailing list
[email protected]
http://news.gmane.org/gmane.os.apple.fink.cvs

Reply via email to