The hw.physmem sysctl has an unsigned long value now, fix the retrieval

to match that.
This commit is contained in:
Thomas Moestl 2002-11-02 17:19:18 +00:00
parent 302a0fb526
commit b95b5e06d0
2 changed files with 2 additions and 2 deletions

View File

@ -1153,7 +1153,7 @@ try_auto_label(Device **devs, Device *dev, int perc, int *req)
struct chunk *tmp_chunk = NULL;
struct chunk *home_chunk = NULL;
int mib[2];
unsigned int physmem;
unsigned long physmem;
size_t size;
Chunk *rootdev, *swapdev, *usrdev, *vardev;
Chunk *tmpdev, *homedev;

View File

@ -1153,7 +1153,7 @@ try_auto_label(Device **devs, Device *dev, int perc, int *req)
struct chunk *tmp_chunk = NULL;
struct chunk *home_chunk = NULL;
int mib[2];
unsigned int physmem;
unsigned long physmem;
size_t size;
Chunk *rootdev, *swapdev, *usrdev, *vardev;
Chunk *tmpdev, *homedev;