aboutsummaryrefslogtreecommitdiff
path: root/src/cmd/acidtypes
diff options
context:
space:
mode:
authorrsc <devnull@localhost>2006-04-01 19:24:03 +0000
committerrsc <devnull@localhost>2006-04-01 19:24:03 +0000
commitcbeb0b26e4c7caa8d1b47de791a7418dc20a4567 (patch)
treee0f7e445de1aa22a42ef873dc4b1118a8105ae93 /src/cmd/acidtypes
parent226d80b8213821af0cbf092d1507c52b504fd368 (diff)
downloadplan9port-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/acidtypes')
-rw-r--r--src/cmd/acidtypes/dat.h2
-rw-r--r--src/cmd/acidtypes/main.c2
-rw-r--r--src/cmd/acidtypes/type.c4
3 files changed, 4 insertions, 4 deletions
diff --git a/src/cmd/acidtypes/dat.h b/src/cmd/acidtypes/dat.h
index 1c26e6bd..8a043787 100644
--- a/src/cmd/acidtypes/dat.h
+++ b/src/cmd/acidtypes/dat.h
@@ -14,7 +14,7 @@ enum
Array,
Range,
Defer,
- Typedef,
+ Typedef
};
struct Type
diff --git a/src/cmd/acidtypes/main.c b/src/cmd/acidtypes/main.c
index 066e8bad..f272f67a 100644
--- a/src/cmd/acidtypes/main.c
+++ b/src/cmd/acidtypes/main.c
@@ -67,7 +67,7 @@ main(int argc, char **argv)
if(!have){
Bprint(&b, "// no debugging symbols in %s\n\n", argv[i]);
- // fprint(2, "no debugging symbols in %s\n", argv[i]);
+ /* fprint(2, "no debugging symbols in %s\n", argv[i]); */
}
uncrackhdr(fp);
}
diff --git a/src/cmd/acidtypes/type.c b/src/cmd/acidtypes/type.c
index 01ecc3e7..00897e34 100644
--- a/src/cmd/acidtypes/type.c
+++ b/src/cmd/acidtypes/type.c
@@ -235,7 +235,7 @@ struct {
"XER", "$XER",
"CTR", "$CTR",
"VRSAVE", "$VRSAVE",
- "FPSCR", "$FPSCR",
+ "FPSCR", "$FPSCR"
};
char*
@@ -469,7 +469,7 @@ nameof(Type *t, int doanon)
}
static char
-basecharof(Type *t) //XXX
+basecharof(Type *t) /*XXX */
{
switch(t->xsizeof){
default: