mirror of
https://github.com/php/php-src.git
synced 2026-03-24 00:02:20 +01:00
ftp: Use return true / return false for functions returning bool
Changes done with Coccinelle:
@r1@
identifier fn;
typedef bool;
symbol false;
symbol true;
@@
bool fn ( ... )
{
<...
return
(
- 0
+ false
|
- 1
+ true
)
;
...>
}
Coccinelle patch sourced from
torvalds/linux@46b5c9b856.
This commit is contained in:
committed by
Tim Düsterhus
parent
2727de725d
commit
aa90372428
@@ -1193,7 +1193,7 @@ static bool ftp_putcmd(ftpbuf_t *ftp, const char *cmd, const size_t cmd_len, con
|
||||
return false;
|
||||
}
|
||||
if (strpbrk(args, "\r\n")) {
|
||||
return 0;
|
||||
return false;
|
||||
}
|
||||
size = slprintf(data, sizeof(data), "%s %s\r\n", cmd, args);
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user