diff options
Diffstat (limited to 'sail/sync.c')
| -rw-r--r-- | sail/sync.c | 16 |
1 files changed, 9 insertions, 7 deletions
diff --git a/sail/sync.c b/sail/sync.c index ec4fc61d..20ab46cd 100644 --- a/sail/sync.c +++ b/sail/sync.c @@ -1,4 +1,4 @@ -/* $NetBSD: sync.c,v 1.3 1995/04/22 10:37:26 cgd Exp $ */ +/* $NetBSD: sync.c,v 1.4 1995/04/24 12:25:28 cgd Exp $ */ /* * Copyright (c) 1983, 1993 @@ -37,7 +37,7 @@ #if 0 static char sccsid[] = "@(#)sync.c 8.1 (Berkeley) 5/31/93"; #else -static char rcsid[] = "$NetBSD: sync.c,v 1.3 1995/04/22 10:37:26 cgd Exp $"; +static char rcsid[] = "$NetBSD: sync.c,v 1.4 1995/04/24 12:25:28 cgd Exp $"; #endif #endif /* not lint */ @@ -61,6 +61,7 @@ makesignal(from, fmt, ship, a, b, c) struct ship *from; char *fmt; register struct ship *ship; + long a, b, c; { char message[80]; @@ -70,7 +71,7 @@ makesignal(from, fmt, ship, a, b, c) (void) sprintf(message, fmt, ship->shipname, colours(ship), sterncolour(ship), a, b, c); - Write(W_SIGNAL, from, 1, (int)message, 0, 0, 0); + Write(W_SIGNAL, from, 1, (long)message, 0, 0, 0); } #include <sys/types.h> @@ -125,7 +126,7 @@ Write(type, ship, isstr, a, b, c, d) int type; struct ship *ship; char isstr; - int a, b, c, d; + long a, b, c, d; { if (isstr) (void) sprintf(sync_bp, "%d %d %d %s\n", @@ -145,7 +146,8 @@ Sync() { sig_t sighup, sigint; register n; - int type, shipnum, isstr, a, b, c, d; + int type, shipnum, isstr; + long a, b, c, d; char buf[80]; char erred = 0; extern errno; @@ -200,7 +202,7 @@ Sync() *p = 0; for (p = buf; *p == ' '; p++) ; - a = (int)p; + a = (long)p; b = c = d = 0; } else if (fscanf(sync_fp, "%d%d%d%d", &a, &b, &c, &d) != 4) @@ -232,7 +234,7 @@ out: sync_update(type, ship, a, b, c, d) int type; register struct ship *ship; - int a, b, c, d; + long a, b, c, d; { switch (type) { case W_DBP: { |
