summaryrefslogtreecommitdiffstats
path: root/usr.sbin/sysinstall/index.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/sysinstall/index.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/sysinstall/index.c')
-rw-r--r--usr.sbin/sysinstall/index.c11
1 files changed, 7 insertions, 4 deletions
diff --git a/usr.sbin/sysinstall/index.c b/usr.sbin/sysinstall/index.c
index ae6f6e4..b3ca29e 100644
--- a/usr.sbin/sysinstall/index.c
+++ b/usr.sbin/sysinstall/index.c
@@ -576,8 +576,8 @@ index_menu(PkgNodePtr root, PkgNodePtr top, PkgNodePtr plist, int *pos, int *scr
use_helpfile(NULL);
kp = top->kids;
if (!hasPackages && plist) {
- nitems = item_add(nitems, "OK", NULL, NULL, NULL, NULL, NULL, 0, &curr, &max);
- nitems = item_add(nitems, "Install", NULL, NULL, NULL, NULL, NULL, 0, &curr, &max);
+ nitems = item_add(nitems, "OK", NULL, NULL, NULL, NULL, NULL, NULL, &curr, &max);
+ nitems = item_add(nitems, "Install", NULL, NULL, NULL, NULL, NULL, NULL, &curr, &max);
}
while (kp && kp->name) {
char buf[256];
@@ -590,12 +590,15 @@ index_menu(PkgNodePtr root, PkgNodePtr top, PkgNodePtr plist, int *pos, int *scr
SAFE_STRCPY(buf, kp->desc);
if (strlen(buf) > (_MAX_DESC - maxname))
buf[_MAX_DESC - maxname] = '\0';
- nitems = item_add(nitems, kp->name, buf, pkg_checked, pkg_fire, pkg_selected, kp, (int)&lists, &curr, &max);
+ nitems = item_add(nitems, kp->name, (char *)buf, pkg_checked,
+ pkg_fire, pkg_selected, kp, (int *)(&lists),
+ &curr, &max);
++n;
kp = kp->next;
}
/* NULL delimiter so item_free() knows when to stop later */
- nitems = item_add(nitems, NULL, NULL, NULL, NULL, NULL, NULL, 0, &curr, &max);
+ nitems = item_add(nitems, NULL, NULL, NULL, NULL, NULL, NULL, NULL,
+ &curr, &max);
recycle:
dialog_clear_norefresh();
OpenPOWER on IntegriCloud