aboutsummaryrefslogtreecommitdiffstats
path: root/palm/palmpower/files
diff options
context:
space:
mode:
authorkris <kris@FreeBSD.org>2002-10-20 18:34:54 +0800
committerkris <kris@FreeBSD.org>2002-10-20 18:34:54 +0800
commit64c2de50e1426655f0c375f5daf4bc7f72b215bd (patch)
tree91fc1740078e4a3da916db4acc5a29929135995a /palm/palmpower/files
parent1df01d748f226126f460f68ab71437b9c6bb1330 (diff)
downloadfreebsd-ports-gnome-64c2de50e1426655f0c375f5daf4bc7f72b215bd.tar.gz
freebsd-ports-gnome-64c2de50e1426655f0c375f5daf4bc7f72b215bd.tar.zst
freebsd-ports-gnome-64c2de50e1426655f0c375f5daf4bc7f72b215bd.zip
Fix build on -current (initialize FILE* variables in main() instead of
at declaration)
Diffstat (limited to 'palm/palmpower/files')
-rw-r--r--palm/palmpower/files/patch-aa29
1 files changed, 29 insertions, 0 deletions
diff --git a/palm/palmpower/files/patch-aa b/palm/palmpower/files/patch-aa
new file mode 100644
index 000000000000..0d034e9ec3d5
--- /dev/null
+++ b/palm/palmpower/files/patch-aa
@@ -0,0 +1,29 @@
+--- utils/splitprc.c~ Wed Feb 7 13:58:34 2001
++++ utils/splitprc.c Sun Oct 20 03:34:32 2002
+@@ -73,10 +73,10 @@
+ char bmap_file[256];
+
+ FILE *ifp;
+-FILE *ofp = stdout;
+-FILE *hfp = NULL;
+-FILE *cfp = NULL;
+-FILE *rfp = NULL;
++FILE *ofp;
++FILE *hfp;
++FILE *cfp;
++FILE *rfp;
+
+
+ struct res_type {
+@@ -970,6 +970,11 @@
+ {
+ char asc[20];
+ int c, bytectr, linectr, ctr;
++
++ ofp = stdout;
++ hfp = NULL;
++ cfp = NULL;
++ rfp = NULL;
+
+ progname = argv[0];
+ hdr_file[0] = '\0';