From ce3f0ce76f59216ff82ecd79e180a5c59d3d60d0 Mon Sep 17 00:00:00 2001 From: Lukas Fleischer Date: Wed, 2 Nov 2011 18:59:40 +0100 Subject: Make use of the NULL macro Use this constant everywhere when referring to a null pointer instead of casting 0 to various types of pointers. Created using following semantic patch: @@ type type; @@ - (type *)0 + NULL Signed-off-by: Lukas Fleischer --- src/custom.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/custom.c') diff --git a/src/custom.c b/src/custom.c index 8b79888..5aae821 100644 --- a/src/custom.c +++ b/src/custom.c @@ -572,7 +572,7 @@ custom_layout_config (void) " 'a' -> appointment panel\n\n" " 't' -> todo panel\n\n"); - conf_win.p = (WINDOW *)0; + conf_win.p = NULL; strncpy (label, _("layout configuration"), BUFSIZ); custom_confwin_init (&conf_win, label); cursor = mark = wins_layout () - 1; -- cgit v1.2.3-54-g00ecf