summaryrefslogtreecommitdiff
path: root/src/GetValues.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/GetValues.c')
-rw-r--r--src/GetValues.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/GetValues.c b/src/GetValues.c
index 3e8bfa0..a6dcb79 100644
--- a/src/GetValues.c
+++ b/src/GetValues.c
@@ -75,8 +75,8 @@ in this Software without prior written authorization from The Open Group.
#include "StringDefs.h"
static int
-GetValues(char *base, /* Base address to fetch values from */
- XrmResourceList *res, /* The current resource values. */
+GetValues(char *const base, /* Base address to fetch values from */
+ XrmResourceList *res, /* The current resource values. */
register Cardinal num_resources, /* number of items in resources */
ArgList args, /* The resource values requested */
Cardinal num_args) /* number of items in arg list */
@@ -200,9 +200,9 @@ XtGetValues(register Widget w,
int targ;
XtAppContext app = XtWidgetToApplicationContext(w);
- if (num_args == 0)
+ if (num_args == 0) {
return;
- if ((args == NULL) && (num_args != 0)) {
+ } else if (args == NULL) {
XtAppErrorMsg(app,
"invalidArgCount", "xtGetValues", XtCXtToolkitError,
"Argument count > 0 on NULL argument list in XtGetValues",