aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/interface-ncurses.cpp
diff options
context:
space:
mode:
authorRobin Haberkorn <robin.haberkorn@googlemail.com>2013-03-18 16:56:14 +0100
committerRobin Haberkorn <robin.haberkorn@googlemail.com>2013-03-18 16:56:14 +0100
commit9f6bfcaf9985dd9f6911c95b5df95e1d72a63f0f (patch)
tree2a9984e56e95b822d38d638f12659944c86de0fe /src/interface-ncurses.cpp
parent9886eaf7fd5170bb037df177848c6b5c7df745c2 (diff)
downloadsciteco-9f6bfcaf9985dd9f6911c95b5df95e1d72a63f0f.tar.gz
make sure a (void*)0 is used as sentinels
since including glib.h on LLVM-Clang (32-bit) results in NULL being redefined to 0 and compiler warnings being emitted when NULL is used as sentinels
Diffstat (limited to 'src/interface-ncurses.cpp')
-rw-r--r--src/interface-ncurses.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/interface-ncurses.cpp b/src/interface-ncurses.cpp
index e078005..639c594 100644
--- a/src/interface-ncurses.cpp
+++ b/src/interface-ncurses.cpp
@@ -257,7 +257,7 @@ InterfaceNCurses::popup_add(PopupEntryType type __attribute__((unused)),
if (isendwin()) /* batch mode */
return;
- entry = g_strconcat(highlight ? "*" : " ", name, NULL);
+ entry = g_strconcat(highlight ? "*" : " ", name, NIL);
popup.longest = MAX(popup.longest, (gint)strlen(name));
popup.length++;