dtappbuilder/dtcodegen: Fix up some warnings, remove use of sys_errlist[].
Removed all the cases of sys_errlist[], no one should be using that
today. Also, correct code generation so that declarations like
'Widget w = NULL; Pixmap p = NULL;' etc, aren't produced, which is
wrong. Use '0', not NULL for these.
This should also correct the 2 mis-definitions of Pixmap that commit
6a9327f2ab attempted to fix in ttsnoop.
dtappbuilder still needs a lot of work.
This commit is contained in:
@@ -61,9 +61,6 @@
|
||||
|
||||
BIL_LOAD_INFO bilP_load;
|
||||
char Buf[MAXPATHLEN];
|
||||
#if !defined(linux) && !defined(CSRG_BASED)
|
||||
extern char *sys_errlist[];
|
||||
#endif
|
||||
|
||||
/*
|
||||
* Read a BIL file into memory. Returns a project node.
|
||||
@@ -327,7 +324,7 @@ bil_load_file_and_resolve_all(
|
||||
util_get_file_name_from_path(path, fileName, MAXPATHLEN);
|
||||
if (chdir(dirName) != 0)
|
||||
{
|
||||
util_printf_err("%s: %s\n", dirName, sys_errlist[errno]);
|
||||
util_printf_err("%s: %s\n", dirName, strerror(errno));
|
||||
return ERR;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user