summaryrefslogtreecommitdiff
path: root/src/print_run_watch.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/print_run_watch.c')
-rw-r--r--src/print_run_watch.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/print_run_watch.c b/src/print_run_watch.c
index 893e2cd..bc0d6dc 100644
--- a/src/print_run_watch.c
+++ b/src/print_run_watch.c
@@ -19,10 +19,10 @@ void print_run_watch(yajl_gen json_gen, char *buffer, const char *title, const c
continue;
}
- if (strncmp(walk+1, "title", strlen("title")) == 0) {
+ if (BEGINS_WITH(walk+1, "title")) {
outwalk += sprintf(outwalk, "%s", title);
walk += strlen("title");
- } else if (strncmp(walk+1, "status", strlen("status")) == 0) {
+ } else if (BEGINS_WITH(walk+1, "status")) {
outwalk += sprintf(outwalk, "%s", (running ? "yes" : "no"));
walk += strlen("status");
}