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/libdisk | |
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/libdisk')
-rw-r--r-- | src/libdisk/disk.c | 2 | ||||
-rw-r--r-- | src/libdisk/proto.c | 12 | ||||
-rw-r--r-- | src/libdisk/scsi.c | 4 |
3 files changed, 9 insertions, 9 deletions
diff --git a/src/libdisk/disk.c b/src/libdisk/disk.c index 45836160..a39276f4 100644 --- a/src/libdisk/disk.c +++ b/src/libdisk/disk.c @@ -49,7 +49,7 @@ enum { Toffset = 446, /* offset of partition table in sector */ Magic0 = 0x55, Magic1 = 0xAA, - NTentry = 4, + NTentry = 4 }; struct Table { Tentry entry[NTentry]; diff --git a/src/libdisk/proto.c b/src/libdisk/proto.c index 9d5ff15b..ee30fc92 100644 --- a/src/libdisk/proto.c +++ b/src/libdisk/proto.c @@ -7,7 +7,7 @@ enum { LEN = 8*1024, - HUNKS = 128, + HUNKS = 128 }; #undef warn @@ -67,11 +67,11 @@ static void setnames(Mkaux*, File*); static void skipdir(Mkaux*); static void warn(Mkaux*, char *, ...); -//static void -//mprint(char *new, char *old, Dir *d, void*) -//{ -// print("%s %s %D\n", new, old, d); -//} +/*static void */ +/*mprint(char *new, char *old, Dir *d, void*) */ +/*{ */ +/* print("%s %s %D\n", new, old, d); */ +/*} */ int rdproto(char *proto, char *root, Mkfsenum *mkenum, Mkfserr *mkerr, void *a) diff --git a/src/libdisk/scsi.c b/src/libdisk/scsi.c index ccab244c..3f351053 100644 --- a/src/libdisk/scsi.c +++ b/src/libdisk/scsi.c @@ -264,8 +264,8 @@ scsi(Scsi *s, uchar *cmd, int ccount, void *v, int dcount, int io) if(scsiverbose) fprint(2, "scsi cmd #%.2ux: %.2ux %.2ux %.2ux: %s\n", cmd[0], key, code, sense[13], p); -// if(key == 0) -// return dcount; +/* if(key == 0) */ +/* return dcount; */ return -1; } |