X-Git-Url: http://git.marmaro.de/?p=mmh;a=blobdiff_plain;f=sbr%2Fgetpass.c;h=3fd4528ea90fc525c624a7866912303e25e136a8;hp=14f2242ac606786cc04a1a3a75726845fe375d43;hb=246ca516a0f7b870316116bc184347b0fb2bc00b;hpb=552fd7253e5ee9e554c5c7a8248a6322aa4363bb diff --git a/sbr/getpass.c b/sbr/getpass.c index 14f2242..3fd4528 100644 --- 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 */ - (void)tcgetattr(fileno(fin), &oterm); + tcgetattr(fileno(fin), &oterm); term = oterm; /* Save original info */ term.c_lflag &= ~ECHO; - (void)fputs(prompt, fout); + fputs(prompt, fout); rewind(fout); /* implied flush */ - (void)tcsetattr(fileno(fin), TCSANOW, &term); + tcsetattr(fileno(fin), TCSANOW, &term); } for (p = buf; (ch = getc(fin)) != EOF && ch != '\n' && @@ -80,10 +80,10 @@ nmh_getpass(const char *prompt) *p = '\0'; if (istty) { - (void)tcsetattr(fileno(fin), TCSANOW, &oterm); + tcsetattr(fileno(fin), TCSANOW, &oterm); rewind(fout); - (void)fputc('\n', fout); - (void)fclose(fin); + fputc('\n', fout); + fclose(fin); } return buf; }