]> granicus.if.org Git - nethack/commitdiff
Fix WINCHAIN compilation
authorPasi Kallinen <paxed@alt.org>
Sat, 10 Mar 2018 19:48:22 +0000 (21:48 +0200)
committerPasi Kallinen <paxed@alt.org>
Sat, 10 Mar 2018 19:48:22 +0000 (21:48 +0200)
include/winprocs.h
win/chain/wc_chainout.c
win/chain/wc_trace.c

index 4d0d395a1e3ad6e192122271ed7679d622f7cb89..3c19d4f03102e87c04b3f2cb3d82ae8e8cbb38d1 100644 (file)
@@ -359,7 +359,7 @@ struct chain_procs {
     void FDECL((*win_status_finish), (CARGS));
     void FDECL((*win_status_enablefield),
                (CARGS, int, const char *, const char *, BOOLEAN_P));
-    void FDECL((*win_status_update), (CARGS, int, genericptr_t, int, int, int, unsigned long));
+    void FDECL((*win_status_update), (CARGS, int, genericptr_t, int, int, int, unsigned long *));
     boolean FDECL((*win_can_suspend), (CARGS));
 };
 #endif /* WINCHAIN */
index 593bd6cd88fa9fd645edce6c5703a53372788815..af964438c551d7f43bae9c812ba74cb0a74a8759 100644 (file)
@@ -620,7 +620,7 @@ boolean enable;
 void
 chainout_status_update(vp, idx, ptr, chg, percent, color, colormasks)
 void *vp;
-int idx, chg, percent;
+int idx, chg, percent, color;
 genericptr_t ptr;
 unsigned long *colormasks;
 {
index 60877623d0b003de49367aa04db4e7121afebb0e..ec81f0a8b29d560e3a76e7c6d9f31462b26bfb8f 100644 (file)
@@ -1083,9 +1083,9 @@ boolean enable;
 }
 
 void
-trace_status_update(vp, idx, ptr, chg, color, colormasks)
+trace_status_update(vp, idx, ptr, chg, percent, color, colormasks)
 void *vp;
-int idx, chg, percent;
+int idx, chg, percent, color;
 genericptr_t ptr;
 unsigned long *colormasks;
 {
@@ -1095,7 +1095,7 @@ unsigned long *colormasks;
             ptr, chg, percent);
 
     PRE;
-    (*tdp->nprocs->win_status_update)(tdp->ndata, idx, ptr, chg, color colormasks);
+    (*tdp->nprocs->win_status_update)(tdp->ndata, idx, ptr, chg, percent, color, colormasks);
     POST;
 }