aboutsummaryrefslogtreecommitdiff
path: root/usr.sbin/sysinstall/misc.c
diff options
context:
space:
mode:
authorMurray Stokely <murray@FreeBSD.org>2001-09-22 22:21:01 +0000
committerMurray Stokely <murray@FreeBSD.org>2001-09-22 22:21:01 +0000
commit9838440951d3c1bb6d7bed226e52149f2deffd6b (patch)
tree078b91d41f565e7375901975843e4fd4e65f5b6b /usr.sbin/sysinstall/misc.c
parentdde96c99330470de413e18f35b2251e00667f347 (diff)
Notes
Diffstat (limited to 'usr.sbin/sysinstall/misc.c')
-rw-r--r--usr.sbin/sysinstall/misc.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/usr.sbin/sysinstall/misc.c b/usr.sbin/sysinstall/misc.c
index 4bba7e513dcb..0965828ccbe3 100644
--- a/usr.sbin/sysinstall/misc.c
+++ b/usr.sbin/sysinstall/misc.c
@@ -189,7 +189,7 @@ safe_malloc(size_t size)
void *ptr;
if (size <= 0)
- msgFatal("Invalid malloc size of %d!", size);
+ msgFatal("Invalid malloc size of %ld!", (long)size);
ptr = malloc(size);
if (!ptr)
msgFatal("Out of memory!");
@@ -204,7 +204,7 @@ safe_realloc(void *orig, size_t size)
void *ptr;
if (size <= 0)
- msgFatal("Invalid realloc size of %d!", size);
+ msgFatal("Invalid realloc size of %ld!", (long)size);
ptr = realloc(orig, size);
if (!ptr)
msgFatal("Out of memory!");
@@ -236,7 +236,7 @@ item_add(dialogMenuItem *list, char *prompt, char *title,
int (*checked)(dialogMenuItem *self),
int (*fire)(dialogMenuItem *self),
void (*selected)(dialogMenuItem *self, int is_selected),
- void *data, int aux, int *curr, int *max)
+ void *data, int *aux, int *curr, int *max)
{
dialogMenuItem *d;
@@ -252,7 +252,7 @@ item_add(dialogMenuItem *list, char *prompt, char *title,
d->fire = fire;
d->selected = selected;
d->data = data;
- d->aux = aux;
+ d->aux = (long)aux;
return list;
}