commands/decomp16: changed K&R to ANSI style
Change-Id: Ibefd50187bcc87a24d7c4c895524be9fa55f493a
This commit is contained in:
parent
5fbf26dbcc
commit
2a453f1a37
@ -119,9 +119,7 @@ void getbits(void);
|
|||||||
void getpipe(void);
|
void getpipe(void);
|
||||||
void putpipe(unsigned u, int flag);
|
void putpipe(unsigned u, int flag);
|
||||||
|
|
||||||
int main(argc, argv)
|
int main(int argc, char **argv)
|
||||||
int argc;
|
|
||||||
char **argv;
|
|
||||||
{
|
{
|
||||||
char c, *cp;
|
char c, *cp;
|
||||||
int j, k, fdtmp;
|
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.
|
* If s is a message, write it to stderr. Flush buffers if needed. Then exit.
|
||||||
*/
|
*/
|
||||||
void die(s)
|
void die(char *s)
|
||||||
char *s;
|
|
||||||
{
|
{
|
||||||
/* Flush stdout buffer if needed */
|
/* Flush stdout buffer if needed */
|
||||||
if (obufind != 0) {
|
if (obufind != 0) {
|
||||||
@ -321,8 +318,7 @@ char *s;
|
|||||||
*
|
*
|
||||||
* Put a char to stdout.
|
* Put a char to stdout.
|
||||||
*/
|
*/
|
||||||
void myputc(c)
|
void myputc(unsigned c)
|
||||||
unsigned c;
|
|
||||||
{
|
{
|
||||||
obuf[obufind++] = c;
|
obuf[obufind++] = c;
|
||||||
if (obufind >= BUFSZ) { /* if stdout buffer full */
|
if (obufind >= BUFSZ) { /* if stdout buffer full */
|
||||||
@ -414,9 +410,7 @@ void getpipe()
|
|||||||
*
|
*
|
||||||
* put an index into the pipeline.
|
* put an index into the pipeline.
|
||||||
*/
|
*/
|
||||||
void putpipe(u, flag)
|
void putpipe(unsigned u, int flag)
|
||||||
unsigned u;
|
|
||||||
int flag;
|
|
||||||
{
|
{
|
||||||
static unsigned short flags, *flagp;
|
static unsigned short flags, *flagp;
|
||||||
static int n = 0; /* number of flags in flags */
|
static int n = 0; /* number of flags in flags */
|
||||||
|
Loading…
x
Reference in New Issue
Block a user