Skip to content

Commit a7c7158

Browse files
committed
ext/soap: Use bool as return type instead of int for is_blank()
1 parent b5c6d57 commit a7c7158

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

ext/soap/php_xml.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,15 +24,15 @@
2424
/* Channel libxml file io layer through the PHP streams subsystem.
2525
* This allows use of ftps:// and https:// urls */
2626

27-
static int is_blank(const xmlChar* str)
27+
static bool is_blank(const xmlChar* str)
2828
{
2929
while (*str != '\0') {
3030
if (*str != ' ' && *str != 0x9 && *str != 0xa && *str != 0xd) {
31-
return 0;
31+
return false;
3232
}
3333
str++;
3434
}
35-
return 1;
35+
return true;
3636
}
3737

3838
/* removes all empty text, comments and other insignoficant nodes */

0 commit comments

Comments
 (0)