aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJames Booth <boothj5@gmail.com>2015-05-04 23:06:35 +0100
committerJames Booth <boothj5@gmail.com>2015-05-04 23:06:35 +0100
commitdda812cd3efbf4029ece7705f4d912ce6d52ea90 (patch)
treeb98055725bafc6c76542ab2b3af43653032bc95f /src
parentaefe458b600b72cc6d292aa177dde18b024ef1a3 (diff)
downloadprofani-tty-dda812cd3efbf4029ece7705f4d912ce6d52ea90.tar.gz
Use null check convention in notifier.c
Diffstat (limited to 'src')
-rw-r--r--src/ui/notifier.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/ui/notifier.c b/src/ui/notifier.c
index e8bc61e3..d3389bc5 100644
--- a/src/ui/notifier.c
+++ b/src/ui/notifier.c
@@ -89,7 +89,7 @@ notify_invite(const char * const from, const char * const room,
g_string_append(message, from);
g_string_append(message, "\nto: ");
g_string_append(message, room);
- if (reason != NULL) {
+ if (reason) {
g_string_append_printf(message, "\n\"%s\"", reason);
}
@@ -103,7 +103,7 @@ notify_message(const char * const handle, int win, const char * const text)
{
GString *message = g_string_new("");
g_string_append_printf(message, "%s (win %d)", handle, win);
- if (text != NULL) {
+ if (text) {
g_string_append_printf(message, "\n%s", text);
}
@@ -117,7 +117,7 @@ notify_room_message(const char * const handle, const char * const room, int win,
{
GString *message = g_string_new("");
g_string_append_printf(message, "%s in %s (win %d)", handle, room, win);
- if (text != NULL) {
+ if (text) {
g_string_append_printf(message, "\n%s", text);
}
@@ -274,7 +274,7 @@ _notify(const char * const message, int timeout,
app_id = "com.googlecode.iterm2";
}
- if (app_id != NULL) {
+ if (app_id) {
g_string_append(notify_command, " -sender ");
g_string_append(notify_command, app_id);
}