com php-src: simplify condition: ext/ftp/ftp.c

From: Date: Thu, 12 Mar 2015 09:21:43 +0000
Subject: com php-src: simplify condition: ext/ftp/ftp.c
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-85476@lists.php.net to get a copy of this message
Commit: 1923c7a9b8a41195bf200584f1c6dc196402d3bc Author: Anatol Belski <ab@php.net> Thu, 12 Mar 2015 10:21:43 +0100 Parents: 53b72587971a336e77a75129364f7de22397b090 Branches: master Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=1923c7a9b8a41195bf200584f1c6dc196402d3bc Log: simplify condition Changed paths: M ext/ftp/ftp.c Diff: diff --git a/ext/ftp/ftp.c b/ext/ftp/ftp.c index 3f01ea7..970ba8f 100644 --- a/ext/ftp/ftp.c +++ b/ext/ftp/ftp.c @@ -321,11 +321,7 @@ ftp_login(ftpbuf_t *ftp, const char *user, const char *pass) i = php_poll2(&p, 1, 300); - if (i > 0) { - retry = 1; - } else { - retry = 0; - } + retry = i > 0; } break;

« previous php.cvs (#85476) next »