Mercurial > hg > Applications > mh
diff uip/burst.c @ 16:07f8972434be
fix for Yosemita Clang
author | Shinji KONO <kono@ie.u-ryukyu.ac.jp> |
---|---|
date | Wed, 12 Nov 2014 02:46:27 +0900 |
parents | 441a2190cfae |
children |
line wrap: on
line diff
--- a/uip/burst.c Thu May 03 17:09:32 2012 +0900 +++ b/uip/burst.c Wed Nov 12 02:46:27 2014 +0900 @@ -10,8 +10,10 @@ #ifdef LOCALE #include <locale.h> #endif +#include <unistd.h> -static cpybrst(), burst(); + +static void cpybrst(), burst(); /* */ static struct swit switches[] = { @@ -52,6 +54,7 @@ /* ARGSUSED */ +int main (argc, argv) int argc; char **argv; @@ -90,7 +93,7 @@ /* */ - while (cp = *argp++) { + while ((cp = *argp++)) { if (*cp == '-') switch (smatch (++cp, switches)) { case AMBIGSW: @@ -185,7 +188,7 @@ /* */ -static burst (smsgs, msgnum, inplace, quietsw, verbosw) +static void burst (smsgs, msgnum, inplace, quietsw, verbosw) register struct smsg *smsgs; int msgnum, inplace, @@ -336,7 +339,7 @@ #define S2 1 #define S3 2 -static cpybrst (in, out, ifile, ofile, len) +static void cpybrst (in, out, ifile, ofile, len) register FILE *in, *out; register char *ifile,