diff options
author | Lennart Poettering <lennart@poettering.net> | 2008-08-29 23:53:55 +0200 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2008-08-29 23:53:55 +0200 |
commit | 13018d62c10731459b0b4fd3f6852dcebddbccb8 (patch) | |
tree | 56115c47b62e8062100492867a8d358d12d571ee /src/pulse/utf8.c | |
parent | 506eacc9228eaf4f9ed805ca22157988327311fb (diff) |
fix a few compiler warnings on older gcc
Diffstat (limited to 'src/pulse/utf8.c')
-rw-r--r-- | src/pulse/utf8.c | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/src/pulse/utf8.c b/src/pulse/utf8.c index 91aa9c81..7671be46 100644 --- a/src/pulse/utf8.c +++ b/src/pulse/utf8.c @@ -64,24 +64,24 @@ #define FILTER_CHAR '_' -static inline int is_unicode_valid(uint32_t ch) { +static inline pa_bool_t is_unicode_valid(uint32_t ch) { if (ch >= 0x110000) /* End of unicode space */ - return 0; + return FALSE; if ((ch & 0xFFFFF800) == 0xD800) /* Reserved area for UTF-16 */ - return 0; + return FALSE; if ((ch >= 0xFDD0) && (ch <= 0xFDEF)) /* Reserved */ - return 0; + return FALSE; if ((ch & 0xFFFE) == 0xFFFE) /* BOM (Byte Order Mark) */ - return 0; + return FALSE; - return 1; + return TRUE; } -static inline int is_continuation_char(uint8_t ch) { +static inline pa_bool_t is_continuation_char(uint8_t ch) { if ((ch & 0xc0) != 0x80) /* 10xxxxxx */ - return 0; - return 1; + return FALSE; + return TRUE; } static inline void merge_continuation_char(uint32_t *u_ch, uint8_t ch) { |