From 6b1d4979842bbcb61f59e709bf1df6f919ab2164 Mon Sep 17 00:00:00 2001 From: Marcin Cieslak Date: Fri, 21 Sep 2012 22:44:28 +0200 Subject: [PATCH] dttypes should not crash on 64-bit system Casting (int) to (char **) will not prevent crash on a 64-bit system. A proper ANSI prototype has been added. --- cde/programs/util/dttypes/dttypes.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/cde/programs/util/dttypes/dttypes.c b/cde/programs/util/dttypes/dttypes.c index 63ac35b88..00ce79189 100644 --- a/cde/programs/util/dttypes/dttypes.c +++ b/cde/programs/util/dttypes/dttypes.c @@ -56,6 +56,7 @@ static int rexp_errno = 0; #define NL_CAT_LOCALE 0 #endif +extern char ** _DtsMMListDb(void); static enum errors { BAD_DB, @@ -653,7 +654,7 @@ main(int argc, char **argv) } else { - dbs = (char **)_DtsMMListDb(); + dbs = _DtsMMListDb(); for(i = 0; dbs[i]; i++) { printf(catgets(dtcatd, 1, 29, "--------------------- %s ----------------\n"),