summaryrefslogtreecommitdiffstats
path: root/usr.sbin/sysinstall/options.c
diff options
context:
space:
mode:
authormurray <murray@FreeBSD.org>2001-09-22 22:25:35 +0000
committermurray <murray@FreeBSD.org>2001-09-22 22:25:35 +0000
commit25145b8fcd5fdd66168789afd55e4c800f8362bc (patch)
tree85f5310db5aa6603d50306051a78bfc50bc1aca1 /usr.sbin/sysinstall/options.c
parent93c176a9ba87c7b1d3320c1ff435b492a61e6c28 (diff)
downloadFreeBSD-src-25145b8fcd5fdd66168789afd55e4c800f8362bc.zip
FreeBSD-src-25145b8fcd5fdd66168789afd55e4c800f8362bc.tar.gz
Silence warnings.
Diffstat (limited to 'usr.sbin/sysinstall/options.c')
-rw-r--r--usr.sbin/sysinstall/options.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/usr.sbin/sysinstall/options.c b/usr.sbin/sysinstall/options.c
index 680edf0..b085092 100644
--- a/usr.sbin/sysinstall/options.c
+++ b/usr.sbin/sysinstall/options.c
@@ -36,6 +36,8 @@
#include "sysinstall.h"
#include <ctype.h>
+#include <curses.h>
+#include <term.h>
int fixitTtyWhich(dialogMenuItem *);
int termSetType(dialogMenuItem *);
@@ -174,7 +176,7 @@ value_of(Option opt)
return (char *)opt.data;
case OPT_IS_INT:
- sprintf(ival, "%d", (int)opt.data);
+ sprintf(ival, "%lu", (long)opt.data);
return ival;
case OPT_IS_FUNC:
OpenPOWER on IntegriCloud