diff options
author | rsc <devnull@localhost> | 2006-04-01 19:24:03 +0000 |
---|---|---|
committer | rsc <devnull@localhost> | 2006-04-01 19:24:03 +0000 |
commit | cbeb0b26e4c7caa8d1b47de791a7418dc20a4567 (patch) | |
tree | e0f7e445de1aa22a42ef873dc4b1118a8105ae93 /src/cmd/mk | |
parent | 226d80b8213821af0cbf092d1507c52b504fd368 (diff) | |
download | plan9port-cbeb0b26e4c7caa8d1b47de791a7418dc20a4567.tar.gz plan9port-cbeb0b26e4c7caa8d1b47de791a7418dc20a4567.tar.bz2 plan9port-cbeb0b26e4c7caa8d1b47de791a7418dc20a4567.zip |
Use gcc -ansi -pedantic in 9c. Fix many non-C89-isms.
Diffstat (limited to 'src/cmd/mk')
-rw-r--r-- | src/cmd/mk/env.c | 2 | ||||
-rw-r--r-- | src/cmd/mk/graph.c | 2 | ||||
-rw-r--r-- | src/cmd/mk/mk.c | 4 | ||||
-rw-r--r-- | src/cmd/mk/rc.c | 2 | ||||
-rw-r--r-- | src/cmd/mk/recipe.c | 2 | ||||
-rw-r--r-- | src/cmd/mk/sh.c | 2 | ||||
-rw-r--r-- | src/cmd/mk/shell.c | 2 | ||||
-rw-r--r-- | src/cmd/mk/unix.c | 2 |
8 files changed, 9 insertions, 9 deletions
diff --git a/src/cmd/mk/env.c b/src/cmd/mk/env.c index c040db58..ffb2762e 100644 --- a/src/cmd/mk/env.c +++ b/src/cmd/mk/env.c @@ -27,7 +27,7 @@ static char *myenv[] = "stem7", "stem8", "stem9", - 0, + 0 }; void diff --git a/src/cmd/mk/graph.c b/src/cmd/mk/graph.c index 80721237..da346c03 100644 --- a/src/cmd/mk/graph.c +++ b/src/cmd/mk/graph.c @@ -37,7 +37,7 @@ applyrules(char *target, char *cnt) char stem[NAMEBLOCK], buf[NAMEBLOCK]; Resub rmatch[NREGEXP]; -/* print("applyrules(%lux='%s')\n", target, target);*//**/ +/* print("applyrules(%lux='%s')\n", target, target); */ sym = symlook(target, S_NODE, 0); if(sym) return (Node *)(sym->value); diff --git a/src/cmd/mk/mk.c b/src/cmd/mk/mk.c index 9f8bbf4e..5ae4fc21 100644 --- a/src/cmd/mk/mk.c +++ b/src/cmd/mk/mk.c @@ -76,7 +76,7 @@ work(Node *node, Node *p, Arc *parc) int ready; int did = 0; - /*print("work(%s) flags=0x%x time=%ld\n", node->name, node->flags, node->time);*//**/ + /*print("work(%s) flags=0x%x time=%ld\n", node->name, node->flags, node->time); */ if(node->flags&BEINGMADE) return(did); if((node->flags&MADE) && (node->flags&PRETENDING) && p && outofdate(p, parc, 0)){ @@ -188,7 +188,7 @@ update(int fake, Node *node) if(a->n && outofdate(node, a, 1)) node->time = a->n->time; } -/* print("----node %s time=%ld flags=0x%x\n", node->name, node->time, node->flags);*//**/ +/* print("----node %s time=%ld flags=0x%x\n", node->name, node->time, node->flags);*/ } static int diff --git a/src/cmd/mk/rc.c b/src/cmd/mk/rc.c index 53f5d5a5..2407662f 100644 --- a/src/cmd/mk/rc.c +++ b/src/cmd/mk/rc.c @@ -190,5 +190,5 @@ Shell rcshell = { rcexpandquote, rcescapetoken, rccopyq, - rcmatchname, + rcmatchname }; diff --git a/src/cmd/mk/recipe.c b/src/cmd/mk/recipe.c index 144a4904..bf7f8ab1 100644 --- a/src/cmd/mk/recipe.c +++ b/src/cmd/mk/recipe.c @@ -99,7 +99,7 @@ dorecipe(Node *node) } MADESET(n, BEINGMADE); } - /*print("lt=%s ln=%s lp=%s\n",wtos(head.next, ' '),wtos(ln.next, ' '),wtos(lp.next, ' '));*//**/ + /*print("lt=%s ln=%s lp=%s\n",wtos(head.next, ' '),wtos(ln.next, ' '),wtos(lp.next, ' '));*/ run(newjob(r, node, aa->stem, aa->match, lp.next, ln.next, head.next, ahead.next)); return(1); } diff --git a/src/cmd/mk/sh.c b/src/cmd/mk/sh.c index ba80162b..e2566514 100644 --- a/src/cmd/mk/sh.c +++ b/src/cmd/mk/sh.c @@ -201,6 +201,6 @@ Shell shshell = { shexpandquote, shescapetoken, shcopyq, - shmatchname, + shmatchname }; diff --git a/src/cmd/mk/shell.c b/src/cmd/mk/shell.c index cee2f6cc..8c15ec21 100644 --- a/src/cmd/mk/shell.c +++ b/src/cmd/mk/shell.c @@ -2,7 +2,7 @@ static Shell *shells[] = { &rcshell, - &shshell, + &shshell }; Shell *shelldefault = &shshell; diff --git a/src/cmd/mk/unix.c b/src/cmd/mk/unix.c index 28951f55..7ecce69f 100644 --- a/src/cmd/mk/unix.c +++ b/src/cmd/mk/unix.c @@ -259,7 +259,7 @@ static struct SIGFPE, "sys: fp: fptrap", SIGPIPE, "sys: write on closed pipe", SIGILL, "sys: trap: illegal instruction", -// SIGSEGV, "sys: segmentation violation", +/* SIGSEGV, "sys: segmentation violation", */ 0, 0 }; |