projects
/
musl
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
make all objects used with atomic operations volatile
[musl]
/
src
/
misc
/
pty.c
diff --git
a/src/misc/pty.c
b/src/misc/pty.c
index
9e201ef
..
b395d2c
100644
(file)
--- a/
src/misc/pty.c
+++ b/
src/misc/pty.c
@@
-26,7
+26,7
@@
int __ptsname_r(int fd, char *buf, size_t len)
{
int pty, err;
if (!buf) len = 0;
- if ((err = __syscall(SYS_ioctl, fd, TIOCGPTN, &pty))) return err;
+ if ((err = __syscall(SYS_ioctl, fd, TIOCGPTN, &pty))) return
-
err;
if (snprintf(buf, len, "/dev/pts/%d", pty) >= len) return ERANGE;
return 0;
}