projects
/
oweals
/
cde.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
rpc.cmsd: use TIRPC on Linux
[oweals/cde.git]
/
cde
/
programs
/
dtlogin
/
resource.c
diff --git
a/cde/programs/dtlogin/resource.c
b/cde/programs/dtlogin/resource.c
index 4314a6b4faa2c41a83a4a3d4f5463b49fafcc99f..6608dba540c99776a690642cb982bc21c5fcc90a 100644
(file)
--- a/
cde/programs/dtlogin/resource.c
+++ b/
cde/programs/dtlogin/resource.c
@@
-90,9
+90,6
@@
int langListTimeout;
#ifdef DEF_NETWORK_DEV
char *networkDev;
#endif
#ifdef DEF_NETWORK_DEV
char *networkDev;
#endif
-#if defined(__osf__)
-char *ignoreLocales;
-#endif
/*
* Dtlogin will accept both Dtlogin and XDM resources. The string variable
/*
* Dtlogin will accept both Dtlogin and XDM resources. The string variable
@@
-222,12
+219,6
@@
static char AppName[16] = DTLOGIN;
# ifdef __apollo
# define DEF_LANG "C"
# endif
# ifdef __apollo
# define DEF_LANG "C"
# endif
-# ifdef __osf__
-# define DEF_LANG "C"
-# endif
-# ifdef __hp_osf
-# define DEF_LANG "en_US.88591"
-# endif
# ifdef sun /* default language under Solaris */
# define DEF_LANG "C"
# endif
# ifdef sun /* default language under Solaris */
# define DEF_LANG "C"
# endif
@@
-290,10
+281,6
@@
struct dmResources {
"networkDevice","NetworkDevice",DM_STRING, &networkDev,
DEF_NETWORK_DEV,
#endif
"networkDevice","NetworkDevice",DM_STRING, &networkDev,
DEF_NETWORK_DEV,
#endif
-#if defined(__osf__)
-"ignoreLocales", "IgnoreLocales", DM_STRING, &ignoreLocales,
- "",
-#endif
};
# define NUM_DM_RESOURCES (sizeof DmResources / sizeof DmResources[0])
};
# define NUM_DM_RESOURCES (sizeof DmResources / sizeof DmResources[0])
@@
-409,6
+396,7
@@
GetResource( char *name, char *class, int valueType, char **valuep,
char *type;
XrmValue value;
char *string, *new_string;
char *type;
XrmValue value;
char *string, *new_string;
+ char empty[] = "";
char str_buf[50];
int len;
char str_buf[50];
int len;
@@
-422,8
+410,13
@@
GetResource( char *name, char *class, int valueType, char **valuep,
}
else
{
}
else
{
- string = default_value;
- len = (string == NULL ? 0 : strlen (string));
+ if(default_value) {
+ string = default_value;
+ len = strlen (string);
+ } else {
+ string = empty;
+ len = 0;
+ }
}
Debug ("%s/%s value %*.*s\n", name, class, len, len, string);
}
Debug ("%s/%s value %*.*s\n", name, class, len, len, string);