forked from mirrors/tftp-hpa-google
Reformat the source code
The source code was a mix of different styles; normalize on NASM style; basically K&R style with 4 space indentation.
This commit is contained in:
parent
62533e7441
commit
22accddda0
18 changed files with 2794 additions and 2820 deletions
18
lib/dup2.c
18
lib/dup2.c
|
@ -8,18 +8,16 @@
|
|||
|
||||
int dup2(int oldfd, int newfd)
|
||||
{
|
||||
int rv, nfd;
|
||||
int rv, nfd;
|
||||
|
||||
close(newfd);
|
||||
close(newfd);
|
||||
|
||||
nfd = rv = dup(oldfd);
|
||||
nfd = rv = dup(oldfd);
|
||||
|
||||
if (rv >= 0 && rv != newfd) {
|
||||
rv = dup2(oldfd, newfd);
|
||||
close(nfd);
|
||||
}
|
||||
if (rv >= 0 && rv != newfd) {
|
||||
rv = dup2(oldfd, newfd);
|
||||
close(nfd);
|
||||
}
|
||||
|
||||
return rv;
|
||||
return rv;
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue