diff options
author | Thomas E. Dickey <dickey@invisible-island.net> | 2019-03-19 20:04:40 -0400 |
---|---|---|
committer | Thomas E. Dickey <dickey@invisible-island.net> | 2019-04-15 19:43:34 -0400 |
commit | c131d277ef061716b97e27cccc094bf1c0ae222f (patch) | |
tree | 568a0146a115d187865fc6ad65ec9dfca5ce4de3 /src/Shell.c | |
parent | c66f453b4089b7af7ee14be7c5f817e8dd98be1e (diff) |
eliminate casts of NULL for String* and Cardinal*, since those are unnecessary
as well as interfere with proposed const-string changes.
Signed-off-by: Thomas E. Dickey <dickey@invisible-island.net>
Diffstat (limited to 'src/Shell.c')
-rw-r--r-- | src/Shell.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/Shell.c b/src/Shell.c index 5112f02..664eedb 100644 --- a/src/Shell.c +++ b/src/Shell.c @@ -1555,7 +1555,7 @@ static void EventHandler( XtAppErrorMsg(XtWidgetToApplicationContext(wid), "invalidWindow","eventHandler",XtCXtToolkitError, "Event with wrong window", - (String *)NULL, (Cardinal *)NULL); + NULL, NULL); return; } @@ -2209,7 +2209,7 @@ static XtGeometryResult RootGeometryManager( } else XtAppWarningMsg(XtWidgetToApplicationContext((Widget)w), "internalError", "shell", XtCXtToolkitError, "Shell's window manager interaction is broken", - (String *)NULL, (Cardinal *)NULL); + NULL, NULL); } else if (wm) { /* no event */ ((WMShellWidget)w)->wm.wait_for_wm = FALSE; /* timed out; must be broken */ } @@ -2722,7 +2722,7 @@ static void ApplicationShellInsertChild( XtAppWarningMsg(XtWidgetToApplicationContext(widget), "invalidClass", "applicationShellInsertChild", XtCXtToolkitError, "ApplicationShell does not accept RectObj children; ignored", - (String*)NULL, (Cardinal*)NULL); + NULL, NULL); } else { XtWidgetProc insert_child; @@ -3386,7 +3386,7 @@ static String* EditCommand( *s = str; s++; for (; --count > 0; s++, sarray++) *s = *sarray; - *s = (String) NULL; + *s = NULL; } else { if (count < 3) return NewStringArray(sarray); @@ -3400,7 +3400,7 @@ static String* EditCommand( s++; } } - *s = (String) NULL; + *s = NULL; } s = new; new = NewStringArray(new); |