mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-08-08 10:50:28 +00:00
[metal] Fix getfiledescriptorsize() code formatting
This commit is contained in:
parent
405349a648
commit
484da042ab
1 changed files with 3 additions and 3 deletions
|
@ -61,11 +61,11 @@ ssize_t getfiledescriptorsize(int fd) {
|
||||||
rc = -1;
|
rc = -1;
|
||||||
}
|
}
|
||||||
} else if (IsMetal()) {
|
} else if (IsMetal()) {
|
||||||
if (fd < 0 || fd >= g_fds.n)
|
if (fd < 0 || fd >= g_fds.n) {
|
||||||
rc = ebadf();
|
rc = ebadf();
|
||||||
else if (g_fds.p[fd].kind != kFdFile)
|
} else if (g_fds.p[fd].kind != kFdFile) {
|
||||||
rc = eacces();
|
rc = eacces();
|
||||||
else {
|
} else {
|
||||||
struct MetalFile *state = (struct MetalFile *)g_fds.p[fd].handle;
|
struct MetalFile *state = (struct MetalFile *)g_fds.p[fd].handle;
|
||||||
rc = state->size;
|
rc = state->size;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue