diff options
author | Peter Hutterer <peter.hutterer@who-t.net> | 2012-01-06 08:35:35 +1000 |
---|---|---|
committer | Peter Hutterer <peter.hutterer@who-t.net> | 2012-01-09 11:07:38 +1000 |
commit | 2b537d3bad97ff18c2a9f949305655fb5055a8d1 (patch) | |
tree | 9157b400acec3e8ac5d422e2921965b49f22de8a /xts5/Xlib15/XFreeStringList.m | |
parent | 205a5e1e1fe0bbe51e59d5aa5248c43c589fd38b (diff) |
xts5: remove (type *)NULL casts
Coccinelle patch:
@@
type T;
@@
- (T *)NULL
+ NULL
with a bit of manual massaging to skip botched hunks
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
Diffstat (limited to 'xts5/Xlib15/XFreeStringList.m')
-rw-r--r-- | xts5/Xlib15/XFreeStringList.m | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/xts5/Xlib15/XFreeStringList.m b/xts5/Xlib15/XFreeStringList.m index 077747df..61796a63 100644 --- a/xts5/Xlib15/XFreeStringList.m +++ b/xts5/Xlib15/XFreeStringList.m @@ -100,7 +100,7 @@ purpose. It is provided "as is" without express or implied warranty. >>TITLE XFreeStringList Xlib15 void XFreeStringList(list) -char **list = (char **) NULL; +char **list = NULL; >>ASSERTION Good A A call to xname frees the memory allocated by a call to .S XTextPropertyToStringList @@ -121,8 +121,8 @@ char *str3 = "TestString3"; int argc = 3; char *argv[3]; int rargc; -char **rargv = (char **) NULL; -char **rargv1 = (char **) NULL; +char **rargv = NULL; +char **rargv1 = NULL; Window w; XVisualInfo *vp; XTextProperty tp; |