summaryrefslogtreecommitdiff
path: root/xcalc.c
diff options
context:
space:
mode:
authorAlan Coopersmith <alan.coopersmith@oracle.com>2023-02-05 10:22:09 -0800
committerAlan Coopersmith <alan.coopersmith@oracle.com>2023-02-05 10:22:09 -0800
commitfc6543c0f9292880180531d656e80c903e8e7dfd (patch)
tree7ac1fc5fbfb1b54f16e4e9d129d283ba9d2e0b55 /xcalc.c
parent28429cd68dfdc9850d3ebc7f712dc752a1c9244c (diff)
Stop casting function returns to void
This was used with old versions of lint to stop warnings about unused return values. Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
Diffstat (limited to 'xcalc.c')
-rw-r--r--xcalc.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/xcalc.c b/xcalc.c
index 93e55c5..34fef53 100644
--- a/xcalc.c
+++ b/xcalc.c
@@ -151,7 +151,7 @@ main(int argc, char **argv)
dpy = XtDisplay(toplevel);
wm_delete_window = XInternAtom(dpy, "WM_DELETE_WINDOW", False);
- (void) XSetWMProtocols(dpy, XtWindow(toplevel), &wm_delete_window, 1);
+ XSetWMProtocols(dpy, XtWindow(toplevel), &wm_delete_window, 1);
XDefineCursor(dpy, XtWindow(toplevel), appResources.cursor);
if (appResources.stipple || (CellsOfScreen(XtScreen(toplevel)) <= 2))
@@ -325,15 +325,15 @@ void Quit(void)
*/
static void Syntax(int argc, char **argv)
{
- (void) fprintf(stderr, "%s: unknown options:", argv[0]);
+ fprintf(stderr, "%s: unknown options:", argv[0]);
for (int i = 1; i <argc; i++)
- (void) fprintf(stderr, " %s", argv[i]);
- (void) fprintf(stderr, "\n\n");
- (void) fprintf(stderr, "Usage: %s", argv[0]);
+ fprintf(stderr, " %s", argv[i]);
+ fprintf(stderr, "\n\n");
+ fprintf(stderr, "Usage: %s", argv[0]);
for (Cardinal i = 0; i < XtNumber(Options); i++)
- (void) fprintf(stderr, " [%s]", Options[i].option);
- (void) fprintf(stderr, "\n");
- (void) fprintf(stderr, " %s -version\n", argv[0]);
+ fprintf(stderr, " [%s]", Options[i].option);
+ fprintf(stderr, "\n");
+ fprintf(stderr, " %s -version\n", argv[0]);
XtDestroyApplicationContext(xtcontext);
exit(1);
}