summaryrefslogtreecommitdiff
path: root/misc/pyqt_memaid/patches/patch-aa
diff options
context:
space:
mode:
Diffstat (limited to 'misc/pyqt_memaid/patches/patch-aa')
-rw-r--r--misc/pyqt_memaid/patches/patch-aa18
1 files changed, 18 insertions, 0 deletions
diff --git a/misc/pyqt_memaid/patches/patch-aa b/misc/pyqt_memaid/patches/patch-aa
new file mode 100644
index 00000000000..bd5a32a9eea
--- /dev/null
+++ b/misc/pyqt_memaid/patches/patch-aa
@@ -0,0 +1,18 @@
+$NetBSD: patch-aa,v 1.1 2005/11/30 19:08:54 rillig Exp $
+
+In ISO C90, declarations may not be intermixed with code.
+
+--- pyqt_memaid/ann/memaid.c.orig Thu Sep 29 11:36:02 2005
++++ pyqt_memaid/ann/memaid.c Wed Nov 30 20:04:42 2005
+@@ -949,10 +949,10 @@ u_short ma_rpts_upto (u_short to_day) {
+ u_short ma_rpts_drill (u_short grade_threshold) { /* bruno: how many to drill */
+ register u_short count = 0;
+ register struct elem *e = List;
++ u_short to_day;
+
+ if (e == NULL)
+ return 0;
+- u_short to_day;
+ to_day = days(0) ;
+
+ /*if (e->tm_t_rpt - e->ivl > to_day )