From: Sascha Wildner Date: Thu, 5 Feb 2009 22:21:18 +0000 (+0100) Subject: installer: Use unsigned long for holding hw.physmem's value. X-Git-Tag: v2.3.1~393^2 X-Git-Url: http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff_plain/1c6a6c4c7753e067468010070544b903a054069e installer: Use unsigned long for holding hw.physmem's value. The previous signed long led to the wrong calculation of default swap size on machines with >2GB main memory. Reported-by: corecode Dragonfly-bug: --- diff --git a/contrib/bsdinstaller-1.1.6/src/lib/libinstaller/survey.c b/contrib/bsdinstaller-1.1.6/src/lib/libinstaller/survey.c index f8072d0..a1df601 100644 --- a/contrib/bsdinstaller-1.1.6/src/lib/libinstaller/survey.c +++ b/contrib/bsdinstaller-1.1.6/src/lib/libinstaller/survey.c @@ -141,7 +141,7 @@ parse_slice_info(char *line, int *slice, int survey_storage(struct i_fn_args *a) { - long mem = 0; + unsigned long mem = 0; char disks[256], line[256]; char *disk, *disk_ptr; struct commands *cmds;