diff options
Diffstat (limited to 'src/common.c')
| -rw-r--r-- | src/common.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/common.c b/src/common.c index 595f2c7..d3b85a5 100644 --- a/src/common.c +++ b/src/common.c @@ -9,11 +9,11 @@ void fatal_error(const char* msg, ...) { exit(1); } -BOOL str_ends_with(const char* s, const char* suffix) { +bool str_ends_with(const char* s, const char* suffix) { size_t l1 = strlen(s); size_t l2 = strlen(suffix); if (l1 < l2) - return FALSE; + return false; return strcmp(s + l1 - l2, suffix) == 0; } |
