]> git.pond.sub.org Git - empserver/blobdiff - src/lib/commands/setres.c
(u_char, u_short, u_int): BSDisms. Figuring out whether sys/types.h
[empserver] / src / lib / commands / setres.c
index 7a5f6e1cc6858caf5d259abf94caffce79ba957a..073b3bdab9e838a6f341d1b006d4762006714566 100644 (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;