mirror of
https://github.com/vgough/encfs.git
synced 2024-11-22 07:53:31 +01:00
Correct last clang warnings in readpassphrase
This commit is contained in:
parent
d693858947
commit
4293ce49b9
@ -126,6 +126,8 @@ restart:
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (write(output, prompt, strlen(prompt)) != -1) {
|
if (write(output, prompt, strlen(prompt)) != -1) {
|
||||||
|
//dummy test to get rid of warn_unused_result compilation warning
|
||||||
|
}
|
||||||
end = buf + bufsiz - 1;
|
end = buf + bufsiz - 1;
|
||||||
for (p = buf; (nr = read(input, &ch, 1)) == 1 && ch != '\n' && ch != '\r';) {
|
for (p = buf; (nr = read(input, &ch, 1)) == 1 && ch != '\n' && ch != '\r';) {
|
||||||
if (p < end) {
|
if (p < end) {
|
||||||
@ -144,10 +146,9 @@ restart:
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
*p = '\0';
|
*p = '\0';
|
||||||
}
|
|
||||||
save_errno = errno;
|
save_errno = errno;
|
||||||
if ((term.c_lflag & ECHO) == 0u) {
|
if ((term.c_lflag & ECHO) == 0u) {
|
||||||
if(write(output, "\n", 1) != -1) {
|
if (write(output, "\n", 1) != -1) {
|
||||||
//dummy test to get rid of warn_unused_result compilation warning
|
//dummy test to get rid of warn_unused_result compilation warning
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user