diff options
Diffstat (limited to 'dispatch.c')
-rw-r--r-- | dispatch.c | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/dispatch.c b/dispatch.c index c5ff65031..d6b63be4b 100644 --- a/dispatch.c +++ b/dispatch.c | |||
@@ -1,3 +1,4 @@ | |||
1 | /* $OpenBSD: dispatch.c,v 1.21 2006/08/03 03:34:42 deraadt Exp $ */ | ||
1 | /* | 2 | /* |
2 | * Copyright (c) 2000 Markus Friedl. All rights reserved. | 3 | * Copyright (c) 2000 Markus Friedl. All rights reserved. |
3 | * | 4 | * |
@@ -21,8 +22,13 @@ | |||
21 | * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF | 22 | * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF |
22 | * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | 23 | * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
23 | */ | 24 | */ |
25 | |||
24 | #include "includes.h" | 26 | #include "includes.h" |
25 | RCSID("$OpenBSD: dispatch.c,v 1.16 2003/04/08 20:21:28 itojun Exp $"); | 27 | |
28 | #include <sys/types.h> | ||
29 | |||
30 | #include <signal.h> | ||
31 | #include <stdarg.h> | ||
26 | 32 | ||
27 | #include "ssh1.h" | 33 | #include "ssh1.h" |
28 | #include "ssh2.h" | 34 | #include "ssh2.h" |
@@ -76,7 +82,7 @@ dispatch_set(int type, dispatch_fn *fn) | |||
76 | dispatch[type] = fn; | 82 | dispatch[type] = fn; |
77 | } | 83 | } |
78 | void | 84 | void |
79 | dispatch_run(int mode, int *done, void *ctxt) | 85 | dispatch_run(int mode, volatile sig_atomic_t *done, void *ctxt) |
80 | { | 86 | { |
81 | for (;;) { | 87 | for (;;) { |
82 | int type; | 88 | int type; |