зеркало из https://github.com/mozilla/gecko-dev.git
Bugzilla bug #31437: this goto statement inside the while loop can be
replaced by a continue statement.
This commit is contained in:
Родитель
8a9e1fd79c
Коммит
8bc19b2998
|
@ -864,7 +864,6 @@ PRInt32 _MD_send(PRFileDesc *fd, const void *buf, PRInt32 amount,
|
|||
* write() are fairly equivalent in performance.
|
||||
*/
|
||||
#if defined(SOLARIS)
|
||||
retry:
|
||||
PR_ASSERT(0 == flags);
|
||||
while ((rv = write(osfd,buf,tmp_amount)) == -1) {
|
||||
#else
|
||||
|
@ -894,7 +893,7 @@ retry:
|
|||
if (err == ERANGE) {
|
||||
if (tmp_amount > 1) {
|
||||
tmp_amount = tmp_amount/2; /* half the bytes */
|
||||
goto retry;
|
||||
continue;
|
||||
}
|
||||
}
|
||||
#endif
|
||||
|
|
Загрузка…
Ссылка в новой задаче