summaryrefslogtreecommitdiffstats
path: root/usr.sbin/sade/misc.c
diff options
context:
space:
mode:
authormurray <murray@FreeBSD.org>2001-09-22 22:21:01 +0000
committermurray <murray@FreeBSD.org>2001-09-22 22:21:01 +0000
commit93c176a9ba87c7b1d3320c1ff435b492a61e6c28 (patch)
tree078b91d41f565e7375901975843e4fd4e65f5b6b /usr.sbin/sade/misc.c
parent9426cdbe394ea7f3120f023fb356b022ba303fef (diff)
downloadFreeBSD-src-93c176a9ba87c7b1d3320c1ff435b492a61e6c28.zip
FreeBSD-src-93c176a9ba87c7b1d3320c1ff435b492a61e6c28.tar.gz
Silence warnings :
Use static as necessary. Use __unused as necessary. sizeof(int) != sizeof(void *)
Diffstat (limited to 'usr.sbin/sade/misc.c')
-rw-r--r--usr.sbin/sade/misc.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/usr.sbin/sade/misc.c b/usr.sbin/sade/misc.c
index 4bba7e5..0965828 100644
--- a/usr.sbin/sade/misc.c
+++ b/usr.sbin/sade/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;
}
OpenPOWER on IntegriCloud