From 0696bb190d2d08937863fd69600efa4b44969600 Mon Sep 17 00:00:00 2001 From: Markus Armbruster Date: Fri, 6 Feb 2004 23:26:25 +0000 Subject: [PATCH] Indentation fix. --- src/lib/commands/buil.c | 12 ++++-------- src/lib/commands/head.c | 12 ++++-------- src/lib/commands/info.c | 12 ++++-------- src/lib/commands/surv.c | 3 +-- src/lib/common/vlist.c | 3 +-- src/lib/gen/ioqueue.c | 15 +++++---------- src/lib/subs/nreport.c | 6 ++---- src/lib/subs/show.c | 6 ++---- 8 files changed, 23 insertions(+), 46 deletions(-) diff --git a/src/lib/commands/buil.c b/src/lib/commands/buil.c index de142330..b9241120 100644 --- a/src/lib/commands/buil.c +++ b/src/lib/commands/buil.c @@ -652,8 +652,7 @@ build_land(register struct sctstr *sp, register struct lchrstr *lp, return 1; } -static - int +static int build_bridge(register struct sctstr *sp, register int *vec) { extern int buil_bh; @@ -807,8 +806,7 @@ build_bridge(register struct sctstr *sp, register int *vec) return 1; } -static - int +static int build_nuke(register struct sctstr *sp, register struct nchrstr *np, register int *vec) { @@ -866,8 +864,7 @@ build_nuke(register struct sctstr *sp, register struct nchrstr *np, return 1; } -static - int +static int build_plane(register struct sctstr *sp, register struct plchrstr *pp, register int *vec, int tlev) { @@ -1006,8 +1003,7 @@ build_plane(register struct sctstr *sp, register struct plchrstr *pp, return 1; } -static - int +static int build_tower(register struct sctstr *sp, register int *vec) { extern int buil_tower_bh; diff --git a/src/lib/commands/head.c b/src/lib/commands/head.c index a3976879..894ca123 100644 --- a/src/lib/commands/head.c +++ b/src/lib/commands/head.c @@ -126,8 +126,7 @@ head(void) return RET_OK; } -static - int +static int head_printscoop(struct histstr (*hist)[MAXNOC], natid ano, natid vno) { register struct histstr *hp; @@ -144,8 +143,7 @@ head_printscoop(struct histstr (*hist)[MAXNOC], natid ano, natid vno) return severity; } -static -s_char * +static s_char * head_meanwhile(int val) { switch (val & 03) { @@ -162,8 +160,7 @@ head_meanwhile(int val) return ""; } -static -s_char * +static s_char * head_describe(struct histstr *hp, int what) { s_char *cp; @@ -222,8 +219,7 @@ head_describe(struct histstr *hp, int what) * returns 9 if no scoops were found * Pretty strange. */ -static - int +static int head_findscoop(struct histstr (*hist)[MAXNOC], register natid maxcnum, natid *ano, natid *vno) { diff --git a/src/lib/commands/info.c b/src/lib/commands/info.c index ce6e0654..f3e34d3b 100644 --- a/src/lib/commands/info.c +++ b/src/lib/commands/info.c @@ -55,8 +55,7 @@ static int fileselect(struct dirent *dp); static int printdir(void); #endif -static -s_char * +static s_char * lowerit(s_char *buf, int n, s_char *orig) { /* converts a string to lower case */ /* lower case output buffer */ @@ -72,8 +71,7 @@ lowerit(s_char *buf, int n, s_char *orig) return buf; } -static - int +static int strnccmp(s_char *s1, s_char *s2, int n) { int i; @@ -163,8 +161,7 @@ info(void) #if 0 static int biggest; -static - int +static int fileselect(struct dirent *dp) { int l; @@ -177,8 +174,7 @@ fileselect(struct dirent *dp) } #ifdef solaris -static - int +static int alphasort(struct dirent *d1, struct dirent *d2) { return strcmp(d1->d_name, d2->d_name); diff --git a/src/lib/commands/surv.c b/src/lib/commands/surv.c index c83bd8f4..927eaec9 100644 --- a/src/lib/commands/surv.c +++ b/src/lib/commands/surv.c @@ -142,8 +142,7 @@ surv(void) return RET_OK; } -static - s_char +static s_char code_char(long int coding, struct sctstr *sp) { int amt; diff --git a/src/lib/common/vlist.c b/src/lib/common/vlist.c index 38f2ee0d..b0350bfc 100644 --- a/src/lib/common/vlist.c +++ b/src/lib/common/vlist.c @@ -273,8 +273,7 @@ vl_setvec(register u_char *type, register u_short *amt, u_char *nvp, * make a free slot; deliveries and distributions * are fair game for us. */ -static - int +static int freeslot(u_char *vec, register u_char *end) { register u_char *vp; diff --git a/src/lib/gen/ioqueue.c b/src/lib/gen/ioqueue.c index 02d80ed1..8cff715c 100644 --- a/src/lib/gen/ioqueue.c +++ b/src/lib/gen/ioqueue.c @@ -189,8 +189,7 @@ ioq_puts(struct ioqueue *ioq, s_char *buf) * this routine doesn't free memory; this is * left for a higher level. */ -static - int +static int ioqtobuf(struct ioqueue *ioq, s_char *buf, int cc) { struct io *io; @@ -224,8 +223,7 @@ ioqtobuf(struct ioqueue *ioq, s_char *buf, int cc) * copy at most cc bytes from ioq to buf, * terminating on the stop character. */ -static - int +static int ioqtocbuf(struct ioqueue *ioq, s_char *buf, int cc, register int stopc) { register int nbytes; @@ -263,8 +261,7 @@ ioqtocbuf(struct ioqueue *ioq, s_char *buf, int cc, register int stopc) * of data from the ioqueue. */ #if !defined(_WIN32) -static - int +static int ioqtoiov(struct ioqueue *ioq, struct iovec *iov, register int max) { struct io *io; @@ -297,8 +294,7 @@ ioqtoiov(struct ioqueue *ioq, struct iovec *iov, register int max) /* * append a buffer to the end of the ioq. */ -static - int +static int appendcc(struct ioqueue *ioq, s_char *buf, int cc) { struct io *io; @@ -338,8 +334,7 @@ appendcc(struct ioqueue *ioq, s_char *buf, int cc) * free memory, dequeue io elements * which are no longer used. */ -static - int +static int removecc(struct ioqueue *ioq, register int cc) { struct io *io; diff --git a/src/lib/subs/nreport.c b/src/lib/subs/nreport.c index b2f5a71b..85888e5c 100644 --- a/src/lib/subs/nreport.c +++ b/src/lib/subs/nreport.c @@ -124,8 +124,7 @@ findfree(void) } } -static - int +static int nextfree(void) { struct free *fp; @@ -148,8 +147,7 @@ struct newscache { int id; }; -static -struct newscache * +static struct newscache * ncache(time_t now, int actor, int event, int victim, int times) { static struct newscache cache[MAXNOC][SLOTS]; diff --git a/src/lib/subs/show.c b/src/lib/subs/show.c index 4c854e97..133b606c 100644 --- a/src/lib/subs/show.c +++ b/src/lib/subs/show.c @@ -171,8 +171,7 @@ sort_lookup_list(void) } } -static - void +static void make_new_list(int tlev, int type) { struct plchrstr *pp; @@ -217,8 +216,7 @@ make_new_list(int tlev, int type) sort_lookup_list(); } -static -s_char * +static s_char * lookup(int key, struct lookup *table) { int match;