summaryrefslogtreecommitdiffstats
path: root/usr.sbin/sysinstall/index.c
diff options
context:
space:
mode:
authorrandi <randi@FreeBSD.org>2010-06-20 04:14:49 +0000
committerrandi <randi@FreeBSD.org>2010-06-20 04:14:49 +0000
commit3934765366e1e69a2849d378d8fcf18c44cdbcba (patch)
tree371ec7ab33f78fb9e1365c62f2796e749167a765 /usr.sbin/sysinstall/index.c
parent47a2bcbced59a8a40016d608682d3efb8faf5133 (diff)
downloadFreeBSD-src-3934765366e1e69a2849d378d8fcf18c44cdbcba.zip
FreeBSD-src-3934765366e1e69a2849d378d8fcf18c44cdbcba.tar.gz
Clean up item_add and remove -fno-strict-aliasing from CFLAGS. Note that
the "aux" value in libdialog is really an opaque pointer, but libdialog stores it as a long for historical reasons. Approved by: cperciva (mentor)
Diffstat (limited to 'usr.sbin/sysinstall/index.c')
-rw-r--r--usr.sbin/sysinstall/index.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.sbin/sysinstall/index.c b/usr.sbin/sysinstall/index.c
index f25a223..c591cfe 100644
--- a/usr.sbin/sysinstall/index.c
+++ b/usr.sbin/sysinstall/index.c
@@ -650,8 +650,8 @@ 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, (char *)buf, pkg_checked,
- pkg_fire, pkg_selected, kp, (int *)(&lists),
+ nitems = item_add(nitems, kp->name, buf, pkg_checked,
+ pkg_fire, pkg_selected, kp, &lists,
&curr, &max);
++n;
kp = kp->next;
OpenPOWER on IntegriCloud