From: Beletti Date: Wed, 20 Nov 2013 21:55:11 +0000 (+0000) Subject: commands/decomp16: changed K&R to ANSI style X-Git-Tag: v3.3.0~667 X-Git-Url: http://zhaoyanbai.com/repos/%22http:/www.isc.org/icons/index.css?a=commitdiff_plain;h=2a453f1a3765bcca4fd242b65513515b536b6f39;p=minix.git commands/decomp16: changed K&R to ANSI style Change-Id: Ibefd50187bcc87a24d7c4c895524be9fa55f493a --- diff --git a/commands/decomp16/decomp16.c b/commands/decomp16/decomp16.c index 1859e5864..1cb349dc4 100644 --- a/commands/decomp16/decomp16.c +++ b/commands/decomp16/decomp16.c @@ -119,9 +119,7 @@ void getbits(void); void getpipe(void); void putpipe(unsigned u, int flag); -int main(argc, argv) -int argc; -char **argv; +int main(int argc, char **argv) { char c, *cp; int j, k, fdtmp; @@ -295,8 +293,7 @@ void ffork() * * If s is a message, write it to stderr. Flush buffers if needed. Then exit. */ -void die(s) -char *s; +void die(char *s) { /* Flush stdout buffer if needed */ if (obufind != 0) { @@ -321,8 +318,7 @@ char *s; * * Put a char to stdout. */ -void myputc(c) -unsigned c; +void myputc(unsigned c) { obuf[obufind++] = c; if (obufind >= BUFSZ) { /* if stdout buffer full */ @@ -414,9 +410,7 @@ void getpipe() * * put an index into the pipeline. */ -void putpipe(u, flag) -unsigned u; -int flag; +void putpipe(unsigned u, int flag) { static unsigned short flags, *flagp; static int n = 0; /* number of flags in flags */