From e8cd1417b75b9f9648f71d820a19b346b77878e3 Mon Sep 17 00:00:00 2001 From: Jman012 Date: Sat, 8 Mar 2014 23:42:37 -0800 Subject: [PATCH] Fixed clang error, disabling the execute module. --- src/misc_tools.c | 4 ++-- src/misc_tools.h | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/misc_tools.c b/src/misc_tools.c index 4430a35..a3dc418 100644 --- a/src/misc_tools.c +++ b/src/misc_tools.c @@ -70,8 +70,8 @@ void print_time(WINDOW *window) wattroff(window,COLOR_PAIR(BLUE)); } -/* Returns true if the string is empty, false otherwise */ -bool string_is_empty(char *string) +/* Returns 1 if the string is empty, 0 otherwise */ +int string_is_empty(char *string) { return string[0] == '\0'; } diff --git a/src/misc_tools.h b/src/misc_tools.h index af264b9..4d711e9 100644 --- a/src/misc_tools.h +++ b/src/misc_tools.h @@ -32,8 +32,8 @@ struct tm *get_time(void); /* Prints the time to given window */ void print_time(WINDOW *window); -/* Returns true if the string is empty, false otherwise */ -bool string_is_empty(char *string); +/* Returns 1 if the string is empty, 0 otherwise */ +int string_is_empty(char *string); /* convert a multibyte string to a wide character string (must provide buffer) */ int char_to_wcs_buf(wchar_t *buf, const uint8_t *string, size_t n);