aboutsummaryrefslogtreecommitdiff
path: root/src/cmd/db
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/db
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/db')
-rw-r--r--src/cmd/db/fns.h4
-rw-r--r--src/cmd/db/setup.c4
2 files changed, 4 insertions, 4 deletions
diff --git a/src/cmd/db/fns.h b/src/cmd/db/fns.h
index 32bd94fb..9ea30f8a 100644
--- a/src/cmd/db/fns.h
+++ b/src/cmd/db/fns.h
@@ -69,9 +69,9 @@ void redirout(char*);
void readfname(char *);
void reread(void);
char* regname(int);
-//vlong rget(Map*, char*);
+/*vlong rget(Map*, char*); */
Regdesc* rname(char*);
-//void rput(Map*, char*, vlong);
+/*void rput(Map*, char*, vlong); */
int runpcs(int, int);
void runrun(int);
void runstep(ulong, int);
diff --git a/src/cmd/db/setup.c b/src/cmd/db/setup.c
index 7fec6437..eaeb61f2 100644
--- a/src/cmd/db/setup.c
+++ b/src/cmd/db/setup.c
@@ -96,8 +96,8 @@ cmdmap(Map *map)
error("Invalid map name");
if (expr(0)) {
- // if (strcmp(name, "text") == 0)
- // textseg(expv, &fhdr);
+ /* if (strcmp(name, "text") == 0) */
+ /* textseg(expv, &fhdr); */
map->seg[i].base = expv;
} else
error("Invalid base address");