summaryrefslogtreecommitdiffstats
path: root/gnu/usr.bin/dialog
diff options
context:
space:
mode:
authormarkm <markm@FreeBSD.org>2000-08-19 11:45:18 +0000
committermarkm <markm@FreeBSD.org>2000-08-19 11:45:18 +0000
commitdeafbc3df10c0c4e83b75f0c6a4196eacc8d43b6 (patch)
treeae8fadec351a408b8daa8708f4c8d783a1cb1957 /gnu/usr.bin/dialog
parentf61e10a1cdf632d902fb8dfcba8f75e98135e0ce (diff)
downloadFreeBSD-src-deafbc3df10c0c4e83b75f0c6a4196eacc8d43b6.zip
FreeBSD-src-deafbc3df10c0c4e83b75f0c6a4196eacc8d43b6.tar.gz
Silence -Wall; main()'s second argument was "unsigned char **",
and this had filtered down into too many other places.
Diffstat (limited to 'gnu/usr.bin/dialog')
-rw-r--r--gnu/usr.bin/dialog/dialog.c14
1 files changed, 8 insertions, 6 deletions
diff --git a/gnu/usr.bin/dialog/dialog.c b/gnu/usr.bin/dialog/dialog.c
index e99b2ae..f9044e8 100644
--- a/gnu/usr.bin/dialog/dialog.c
+++ b/gnu/usr.bin/dialog/dialog.c
@@ -17,6 +17,8 @@
* along with this program; if not, write to the Free Software
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
*
+ * $FreeBSD$
+ *
*
* HISTORY:
*
@@ -87,9 +89,9 @@
#include <sys/wait.h>
#include <dialog.h>
-void Usage(unsigned char *name);
+void Usage(char *name);
-int main(int argc, unsigned char *argv[])
+int main(int argc, char *argv[])
{
int offset = 0, clear_screen = 0, end_common_opts = 0, retval;
unsigned char *title = NULL;
@@ -367,9 +369,9 @@ int main(int argc, unsigned char *argv[])
exit(-1);
}
init_dialog();
- retval = dialog_tree(argv+offset+7, argc-offset-7, *argv[offset+2],
- title, argv[offset+3], atoi(argv[offset+4]), atoi(argv[offset+5]),
- atoi(argv[offset+6]), &tresult);
+ retval = dialog_tree((unsigned char **)argv+offset+7, argc-offset-7,
+ *argv[offset+2], title, argv[offset+3], atoi(argv[offset+4]),
+ atoi(argv[offset+5]), atoi(argv[offset+6]), &tresult);
dialog_update();
if (!retval)
@@ -390,7 +392,7 @@ int main(int argc, unsigned char *argv[])
/*
* Print program usage
*/
-void Usage(unsigned char *name)
+void Usage(char *name)
{
fprintf(stderr, "\
\ndialog version 0.3, by Savio Lam (lam836@cs.cuhk.hk).\
OpenPOWER on IntegriCloud