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 63ac35b..00ce791 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"),
-- 
1.7.9.2


------------------------------------------------------------------------------
Got visibility?
Most devs has no idea what their production app looks like.
Find out how fast your code is with AppDynamics Lite.
http://ad.doubleclick.net/clk;262219671;13503038;y?
http://info.appdynamics.com/FreeJavaPerformanceDownload.html
_______________________________________________
cdesktopenv-devel mailing list
cdesktopenv-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/cdesktopenv-devel

Reply via email to