diff options
author | Matt Turner <mattst88@gmail.com> | 2018-03-23 15:36:53 -0700 |
---|---|---|
committer | Matt Turner <mattst88@gmail.com> | 2018-03-23 15:37:01 -0700 |
commit | 871ef9919c993cc651df446ea6979b6e963f9fe5 (patch) | |
tree | 8c17dca653f68a955d4f1c2a4a3d73df324b262f | |
parent | 218bf401fc9bffbfba0ec24e0501f25d4ef1874c (diff) |
Fix pointer-to-int-cast errors
The last parameter is just num_args, so not sure why NULL was ever a
good choice.
Signed-off-by: Matt Turner <mattst88@gmail.com>
-rw-r--r-- | xtrapin.c | 2 | ||||
-rw-r--r-- | xtrapinfo.c | 2 | ||||
-rw-r--r-- | xtrapout.c | 2 | ||||
-rw-r--r-- | xtrapproto.c | 2 | ||||
-rw-r--r-- | xtrapreset.c | 2 | ||||
-rw-r--r-- | xtrapstats.c | 2 |
6 files changed, 6 insertions, 6 deletions
@@ -173,7 +173,7 @@ main(int argc, char *argv[]) appW = XtAppInitialize(&app,"XTrap",optionTable,(Cardinal)1L, (int *)&argc, (String *)argv, (String *)NULL,(ArgList)&tmp, - (Cardinal)NULL); + 0); dpy = XtDisplay(appW); #ifdef DEBUG diff --git a/xtrapinfo.c b/xtrapinfo.c index 129d104..84f1029 100644 --- a/xtrapinfo.c +++ b/xtrapinfo.c @@ -68,7 +68,7 @@ main(int argc, char *argv[]) /* Connect to Server */ appW = XtAppInitialize(&app,"XTrap",NULL,(Cardinal)0L, (int *)&argc, (String *)argv, (String *)NULL, (ArgList)&tmp, - (Cardinal)NULL); + 0); dpy = XtDisplay(appW); #ifdef DEBUG XSynchronize(dpy, True); @@ -228,7 +228,7 @@ main(int argc, char *argv[]) appW = XtAppInitialize(&app,"XTrap",optionTable,(Cardinal)2L, (int *)&argc, (String *)argv, (String *)NULL,(ArgList)&tmp, - (Cardinal)NULL); + 0); dpy = XtDisplay(appW); #ifdef DEBUG diff --git a/xtrapproto.c b/xtrapproto.c index 54f8e10..a5e2763 100644 --- a/xtrapproto.c +++ b/xtrapproto.c @@ -72,7 +72,7 @@ main(int argc, char *argv[]) /* Connect to Server */ appW = XtAppInitialize(&app,"XTrap",NULL,(Cardinal)0L, (int *)&argc, (String *)argv, (String *)NULL,(ArgList)&tmp, - (Cardinal)NULL); + 0); dpy = XtDisplay(appW); printf("Display: %s \n", DisplayString(dpy)); if ((tc = XECreateTC(dpy,0L, NULL)) == NULL) diff --git a/xtrapreset.c b/xtrapreset.c index 7e4803e..3b3ddf2 100644 --- a/xtrapreset.c +++ b/xtrapreset.c @@ -67,7 +67,7 @@ main(int argc, char *argv[]) /* Connect to Server */ appW = XtAppInitialize(&app,"XTrap",NULL,(Cardinal)0L, (int *)&argc, (String *)argv, (String *)NULL,(ArgList)&tmp, - (Cardinal)NULL); + 0); dpy = XtDisplay(appW); #ifdef DEBUG XSynchronize(dpy, True); diff --git a/xtrapstats.c b/xtrapstats.c index 90efbb6..690adae 100644 --- a/xtrapstats.c +++ b/xtrapstats.c @@ -75,7 +75,7 @@ main(int argc, char *argv[]) /* Connect to Server */ appW = XtAppInitialize(&app,"XTrap",NULL,(Cardinal)0L, (int *)&argc, (String *)argv, (String *)NULL,(ArgList)&tmp, - (Cardinal)NULL); + 0); dpy = XtDisplay(appW); #ifdef DEBUG XSynchronize(dpy, True); |