projects
/
mmh
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Make mhn.defaults a static file and removed the scripts that built it.
[mmh]
/
sbr
/
getpass.c
diff --git
a/sbr/getpass.c
b/sbr/getpass.c
index
14f2242
..
3fd4528
100644
(file)
--- a/
sbr/getpass.c
+++ b/
sbr/getpass.c
@@
-66,12
+66,12
@@
nmh_getpass(const char *prompt)
fout = stderr;
fin = stdin;
} else { /* Reading directly from terminal here */
fout = stderr;
fin = stdin;
} else { /* Reading directly from terminal here */
- (void)tcgetattr(fileno(fin), &oterm);
+ tcgetattr(fileno(fin), &oterm);
term = oterm; /* Save original info */
term.c_lflag &= ~ECHO;
term = oterm; /* Save original info */
term.c_lflag &= ~ECHO;
- (void)fputs(prompt, fout);
+ fputs(prompt, fout);
rewind(fout); /* implied flush */
rewind(fout); /* implied flush */
- (void)tcsetattr(fileno(fin), TCSANOW, &term);
+ tcsetattr(fileno(fin), TCSANOW, &term);
}
for (p = buf; (ch = getc(fin)) != EOF && ch != '\n' &&
}
for (p = buf; (ch = getc(fin)) != EOF && ch != '\n' &&
@@
-80,10
+80,10
@@
nmh_getpass(const char *prompt)
*p = '\0';
if (istty) {
*p = '\0';
if (istty) {
- (void)tcsetattr(fileno(fin), TCSANOW, &oterm);
+ tcsetattr(fileno(fin), TCSANOW, &oterm);
rewind(fout);
rewind(fout);
- (void)fputc('\n', fout);
- (void)fclose(fin);
+ fputc('\n', fout);
+ fclose(fin);
}
return buf;
}
}
return buf;
}