(u_char, u_short, u_int): BSDisms. Figuring out whether sys/types.h
defines them would be possible, but isn't worth the trouble. Replace by unabbreviated types.
This commit is contained in:
parent
21bf6b41d4
commit
8054aafb9a
22 changed files with 109 additions and 113 deletions
|
@ -79,7 +79,7 @@ setres(void)
|
|||
if (sect.sct_own != 0)
|
||||
resnoise(§, 1, "Iron ore content",
|
||||
(int)sect.sct_min, amt);
|
||||
sect.sct_min = (u_char)amt;
|
||||
sect.sct_min = (unsigned char)amt;
|
||||
putsect(§);
|
||||
}
|
||||
break;
|
||||
|
@ -98,7 +98,7 @@ setres(void)
|
|||
if (sect.sct_own != 0)
|
||||
resnoise(§, 1, "Gold content",
|
||||
(int)sect.sct_gmin, amt);
|
||||
sect.sct_gmin = (u_char)amt;
|
||||
sect.sct_gmin = (unsigned char)amt;
|
||||
putsect(§);
|
||||
}
|
||||
break;
|
||||
|
@ -116,7 +116,7 @@ setres(void)
|
|||
amt = 0;
|
||||
if (sect.sct_own != 0)
|
||||
resnoise(§, 1, "Oil content", (int)sect.sct_oil, amt);
|
||||
sect.sct_oil = (u_char)amt;
|
||||
sect.sct_oil = (unsigned char)amt;
|
||||
putsect(§);
|
||||
}
|
||||
break;
|
||||
|
@ -135,7 +135,7 @@ setres(void)
|
|||
if (sect.sct_own != 0)
|
||||
resnoise(§, 1, "Fertility content",
|
||||
(int)sect.sct_fertil, amt);
|
||||
sect.sct_fertil = (u_char)amt;
|
||||
sect.sct_fertil = (unsigned char)amt;
|
||||
putsect(§);
|
||||
}
|
||||
break;
|
||||
|
@ -154,7 +154,7 @@ setres(void)
|
|||
if (sect.sct_own != 0)
|
||||
resnoise(§, 1, "Uranium content",
|
||||
(int)sect.sct_uran, amt);
|
||||
sect.sct_uran = (u_char)amt;
|
||||
sect.sct_uran = (unsigned char)amt;
|
||||
putsect(§);
|
||||
}
|
||||
break;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue