summaryrefslogtreecommitdiff
path: root/cad/mars/files/patch-sim_event.c
diff options
context:
space:
mode:
authorMartin Wilke <miwi@FreeBSD.org>2007-11-27 22:49:01 +0000
committerMartin Wilke <miwi@FreeBSD.org>2007-11-27 22:49:01 +0000
commitae47d2196b6088234931aa55d769a69982d2a63d (patch)
treec61885690fdaaec32695e75ff38fcdc2b91e4f5c /cad/mars/files/patch-sim_event.c
parentDocument ikiwiki improper symlink verification vulnerability. (diff)
- Fix build with GCC 4.2
- Remove most warnings - Add OPTIONS Knob - Pass maintainership to submitter PR: 118246 Submitted by: Pietro Cerutti <gahr@gahr.ch> Approved by: portmgr (pav)
Diffstat (limited to 'cad/mars/files/patch-sim_event.c')
-rw-r--r--cad/mars/files/patch-sim_event.c33
1 files changed, 33 insertions, 0 deletions
diff --git a/cad/mars/files/patch-sim_event.c b/cad/mars/files/patch-sim_event.c
new file mode 100644
index 000000000000..7b74f752b8c5
--- /dev/null
+++ b/cad/mars/files/patch-sim_event.c
@@ -0,0 +1,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));
+ }
+