summaryrefslogtreecommitdiffstats
path: root/sail/sync.c
diff options
context:
space:
mode:
authordholland <dholland@NetBSD.org>2009-03-14 19:35:13 +0000
committerdholland <dholland@NetBSD.org>2009-03-14 19:35:13 +0000
commitfdc664b7bf17e7162301f1d0354f0094af2b08e5 (patch)
treed888f0121027af737b66f6d4abb9d3ef9f3abbaa /sail/sync.c
parent458c440612e1d5d8ad36c7d3ab6f4a0a9e99aa93 (diff)
downloadbsdgames-darwin-fdc664b7bf17e7162301f1d0354f0094af2b08e5.tar.gz
bsdgames-darwin-fdc664b7bf17e7162301f1d0354f0094af2b08e5.tar.zst
bsdgames-darwin-fdc664b7bf17e7162301f1d0354f0094af2b08e5.zip
Lines <= 80 chars, remove trailing whitespace, other formatting adjustments.
No functional change.
Diffstat (limited to 'sail/sync.c')
-rw-r--r--sail/sync.c13
1 files changed, 8 insertions, 5 deletions
diff --git a/sail/sync.c b/sail/sync.c
index a754ffb3..e5277ca6 100644
--- a/sail/sync.c
+++ b/sail/sync.c
@@ -1,4 +1,4 @@
-/* $NetBSD: sync.c,v 1.27 2009/03/14 18:41:21 dholland Exp $ */
+/* $NetBSD: sync.c,v 1.28 2009/03/14 19:35:13 dholland Exp $ */
/*
* Copyright (c) 1983, 1993
@@ -34,7 +34,7 @@
#if 0
static char sccsid[] = "@(#)sync.c 8.2 (Berkeley) 4/28/95";
#else
-__RCSID("$NetBSD: sync.c,v 1.27 2009/03/14 18:41:21 dholland Exp $");
+__RCSID("$NetBSD: sync.c,v 1.28 2009/03/14 19:35:13 dholland Exp $");
#endif
#endif /* not lint */
@@ -54,7 +54,8 @@ __RCSID("$NetBSD: sync.c,v 1.27 2009/03/14 18:41:21 dholland Exp $");
#define BUFSIZE 4096
-static int sync_update(int, struct ship *, const char *, long, long, long, long);
+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;
@@ -278,7 +279,8 @@ Sync(void)
astr = p;
a = b = c = d = 0;
} else {
- if (fscanf(sync_fp, "%ld%ld%ld%ld", &a, &b, &c, &d) != 4)
+ if (fscanf(sync_fp, "%ld%ld%ld%ld", &a, &b, &c, &d)
+ != 4)
goto bad;
astr = NULL;
}
@@ -309,7 +311,8 @@ out:
}
static int
-sync_update(int type, struct ship *ship, const char *astr, long a, long b, long c, long d)
+sync_update(int type, struct ship *ship, const char *astr,
+ long a, long b, long c, long d)
{
switch (type) {
case W_DBP: {