projects
/
gapil.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Trattato PR_SET_PTRACER.
[gapil.git]
/
listati
/
UnSetTermAttr.c
diff --git
a/listati/UnSetTermAttr.c
b/listati/UnSetTermAttr.c
index fbeec7556c426e6f203f6bde19230c749ee7080d..bb9c21b6ea4f29f0ebc451c2e74b9d6cc7fd4f55 100644
(file)
--- a/
listati/UnSetTermAttr.c
+++ b/
listati/UnSetTermAttr.c
@@
-2,14
+2,12
@@
int UnSetTermAttr(int fd, tcflag_t flag)
{
struct termios values;
int res;
{
struct termios values;
int res;
- res = tcgetattr (desc, &values);
- if (res) {
+ if (res = tcgetattr(desc, &values)) {
perror("Cannot get attributes");
return res;
}
values.c_lflag &= (~flag);
perror("Cannot get attributes");
return res;
}
values.c_lflag &= (~flag);
- res = tcsetattr (desc, TCSANOW, &values);
- if (res) {
+ if (res = tcsetattr(desc, TCSANOW, &values)) {
perror("Cannot set attributes");
return res;
}
perror("Cannot set attributes");
return res;
}