bpo-32150: Expand tabs to spaces in C files. (#4583)

This commit is contained in:
Serhiy Storchaka 2017-11-28 17:56:10 +02:00 committed by GitHub
parent 08d2b86a10
commit 598ceae876
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
27 changed files with 213 additions and 213 deletions

View file

@ -19,13 +19,13 @@
int
dup2(int fd1, int fd2)
{
if (fd1 != fd2) {
if (fcntl(fd1, F_GETFL) < 0)
return BADEXIT;
if (fcntl(fd2, F_GETFL) >= 0)
close(fd2);
if (fcntl(fd1, F_DUPFD, fd2) < 0)
return BADEXIT;
}
return fd2;
if (fd1 != fd2) {
if (fcntl(fd1, F_GETFL) < 0)
return BADEXIT;
if (fcntl(fd2, F_GETFL) >= 0)
close(fd2);
if (fcntl(fd1, F_DUPFD, fd2) < 0)
return BADEXIT;
}
return fd2;
}