Casts are needed to subtract u_longs.

Submitted by:	tor
This commit is contained in:
Brian Feldman 2000-08-31 22:21:33 +00:00
parent 54613737b4
commit 468ddc8a44

View File

@ -210,7 +210,7 @@ chgsbsize(uid, hiwat, to, max)
if (uip == NULL)
uip = uicreate(uid);
s = splnet();
diff = to - *hiwat;
diff = (rlim_t)to - (rlim_t)*hiwat;
/* don't allow them to exceed max, but allow subtraction */
if (diff > 0 && uip->ui_sbsize + diff > max) {
(void)uifree(uip);