(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:
Markus Armbruster 2006-03-25 07:05:34 +00:00
parent 21bf6b41d4
commit 8054aafb9a
22 changed files with 109 additions and 113 deletions

View file

@ -79,7 +79,7 @@ setres(void)
if (sect.sct_own != 0)
resnoise(&sect, 1, "Iron ore content",
(int)sect.sct_min, amt);
sect.sct_min = (u_char)amt;
sect.sct_min = (unsigned char)amt;
putsect(&sect);
}
break;
@ -98,7 +98,7 @@ setres(void)
if (sect.sct_own != 0)
resnoise(&sect, 1, "Gold content",
(int)sect.sct_gmin, amt);
sect.sct_gmin = (u_char)amt;
sect.sct_gmin = (unsigned char)amt;
putsect(&sect);
}
break;
@ -116,7 +116,7 @@ setres(void)
amt = 0;
if (sect.sct_own != 0)
resnoise(&sect, 1, "Oil content", (int)sect.sct_oil, amt);
sect.sct_oil = (u_char)amt;
sect.sct_oil = (unsigned char)amt;
putsect(&sect);
}
break;
@ -135,7 +135,7 @@ setres(void)
if (sect.sct_own != 0)
resnoise(&sect, 1, "Fertility content",
(int)sect.sct_fertil, amt);
sect.sct_fertil = (u_char)amt;
sect.sct_fertil = (unsigned char)amt;
putsect(&sect);
}
break;
@ -154,7 +154,7 @@ setres(void)
if (sect.sct_own != 0)
resnoise(&sect, 1, "Uranium content",
(int)sect.sct_uran, amt);
sect.sct_uran = (u_char)amt;
sect.sct_uran = (unsigned char)amt;
putsect(&sect);
}
break;