summaryrefslogtreecommitdiff
path: root/src/custom.c
diff options
context:
space:
mode:
authorLukas Fleischer <calcurse@cryptocrack.de>2011-11-02 18:59:40 +0100
committerLukas Fleischer <calcurse@cryptocrack.de>2011-11-02 19:33:23 +0100
commitce3f0ce76f59216ff82ecd79e180a5c59d3d60d0 (patch)
treea0d7618a75c1f9aae4efe2059efb90f8a066b546 /src/custom.c
parent7cc6305588acea9c7960abaacf823d62f798f5ba (diff)
downloadcalcurse-ce3f0ce76f59216ff82ecd79e180a5c59d3d60d0.zip
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 <calcurse@cryptocrack.de>
Diffstat (limited to 'src/custom.c')
-rw-r--r--src/custom.c2
1 files changed, 1 insertions, 1 deletions
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;