diff options
| author | Martin Wilke <miwi@FreeBSD.org> | 2007-11-27 22:49:01 +0000 |
|---|---|---|
| committer | Martin Wilke <miwi@FreeBSD.org> | 2007-11-27 22:49:01 +0000 |
| commit | ae47d2196b6088234931aa55d769a69982d2a63d (patch) | |
| tree | c61885690fdaaec32695e75ff38fcdc2b91e4f5c /cad/mars/files/patch-sim_event.c | |
| parent | Document 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.c | 33 |
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)); + } + |
