diff options
| author | jwise <jwise@NetBSD.org> | 2001-01-04 02:43:32 +0000 |
|---|---|---|
| committer | jwise <jwise@NetBSD.org> | 2001-01-04 02:43:32 +0000 |
| commit | 97e04d4fb9d218f2fb01cc75da027de2f4035be8 (patch) | |
| tree | 18821c5b8e5c6f40481c3ae4c98f9b02f9f434fb /sail/sync.c | |
| parent | e3d903728b566a12e09bf75b912da49e60b2643b (diff) | |
| download | bsdgames-darwin-97e04d4fb9d218f2fb01cc75da027de2f4035be8.tar.gz bsdgames-darwin-97e04d4fb9d218f2fb01cc75da027de2f4035be8.zip | |
Second half of static-ization of local funcs.
Diffstat (limited to 'sail/sync.c')
| -rw-r--r-- | sail/sync.c | 17 |
1 files changed, 14 insertions, 3 deletions
diff --git a/sail/sync.c b/sail/sync.c index 16714ff1..71043d9a 100644 --- a/sail/sync.c +++ b/sail/sync.c @@ -1,4 +1,4 @@ -/* $NetBSD: sync.c,v 1.15 2001/01/01 21:57:38 jwise Exp $ */ +/* $NetBSD: sync.c,v 1.16 2001/01/04 02:43:33 jwise Exp $ */ /* * Copyright (c) 1983, 1993 @@ -38,7 +38,7 @@ #if 0 static char sccsid[] = "@(#)sync.c 8.2 (Berkeley) 4/28/95"; #else -__RCSID("$NetBSD: sync.c,v 1.15 2001/01/01 21:57:38 jwise Exp $"); +__RCSID("$NetBSD: sync.c,v 1.16 2001/01/04 02:43:33 jwise Exp $"); #endif #endif /* not lint */ @@ -59,6 +59,17 @@ __RCSID("$NetBSD: sync.c,v 1.15 2001/01/01 21:57:38 jwise Exp $"); #define BUFSIZE 4096 +void fmtship(char *, size_t, const char *, struct ship *); +void makesignal(struct ship *, const char *, struct ship *, ...); +void makemsg(struct ship *, const char *, ...); +int sync_exists(int); +int sync_open(void); +void sync_close(int); +void Write(int, struct ship *, long, long, long, long); +void Writestr(int, struct ship *, const char *); +int Sync(void); +static int sync_update(int, struct ship *, const char *, long, long, long, long); + static const char SF[] = _PATH_SYNC; static const char LF[] = _PATH_LOCK; static char sync_buf[BUFSIZE]; @@ -304,7 +315,7 @@ out: return erred ? -1 : 0; } -int +static int sync_update(int type, struct ship *ship, const char *astr, long a, long b, long c, long d) { switch (type) { |
