summaryrefslogtreecommitdiff
path: root/cad/mars/files/patch-sim_event.c
blob: 7b74f752b8c543b167c2077cab4e75de7e0cf726 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
--- sim/event.c.orig	2007-11-23 21:54:37.000000000 +0100
+++ sim/event.c	2007-11-23 21:55:23.000000000 +0100
@@ -433,14 +433,13 @@
    I'm just using the stack to store a list of events that must be
    deleted, rather than creating my own list/array/whatever.
 */
-
+static void ev_dequeue_by_comp_and_type1();
 void
 ev_dequeue_by_comp_and_type(src, dest, type)
 
 Component	*src, *dest;
 Evtype		type;
 {
-    static void ev_dequeue_by_comp_and_type1();
     ev_dequeue_by_comp_and_type1(src, dest, type,
 				 (Event *)heap_iter_init(event_queue));
 }
@@ -476,13 +475,11 @@
    I'm just using the stack to store a list of events that must be
    deleted, rather than creating my own list/array/whatever.
 */
-
+static void ev_dequeue_by_time1();
 void
 ev_dequeue_by_time(t)
      tick_t t;
 {
-    static void ev_dequeue_by_time1();
-
     ev_dequeue_by_time1(t, (Event *)heap_iter_init(event_queue));
 }