1
0
Fork 0
mirror of git://git.code.sf.net/p/cdesktopenv/code synced 2025-02-13 19:52:20 +00:00

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.
This commit is contained in:
Marcin Cieslak 2012-09-21 22:44:28 +02:00 committed by Jon Trulson
parent 1041e08003
commit 6b1d497984

View file

@ -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"),