Use gcc -ansi -pedantic in 9c. Fix many non-C89-isms.
This commit is contained in:
parent
226d80b821
commit
cbeb0b26e4
492 changed files with 3218 additions and 3167 deletions
|
|
@ -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];
|
||||
|
|
|
|||
|
|
@ -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)
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue