mirror of
https://github.com/Llewellynvdm/conky.git
synced 2025-02-05 21:48:33 +00:00
fix unused result warnings in mail.c
This commit is contained in:
parent
c8a99a865a
commit
c986aa6346
@ -323,7 +323,8 @@ static void update_mail_count(struct local_mail_s *mail)
|
|||||||
|
|
||||||
/* skip until \n */
|
/* skip until \n */
|
||||||
while (strchr(buf, '\n') == NULL && !feof(fp)) {
|
while (strchr(buf, '\n') == NULL && !feof(fp)) {
|
||||||
fgets(buf, 128, fp);
|
if (!fgets(buf, 128, fp))
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -431,7 +432,8 @@ struct mail_s *parse_mail_args(char type, const char *arg)
|
|||||||
term.c_lflag &= ~ECHO;
|
term.c_lflag &= ~ECHO;
|
||||||
tcsetattr(fp, TCSANOW, &term);
|
tcsetattr(fp, TCSANOW, &term);
|
||||||
printf("Enter mailbox password (%s@%s): ", mail->user, mail->host);
|
printf("Enter mailbox password (%s@%s): ", mail->user, mail->host);
|
||||||
scanf("%128s", mail->pass);
|
if (scanf("%128s", mail->pass))
|
||||||
|
mail->pass[0] = 0;
|
||||||
printf("\n");
|
printf("\n");
|
||||||
term.c_lflag |= ECHO;
|
term.c_lflag |= ECHO;
|
||||||
tcsetattr(fp, TCSANOW, &term);
|
tcsetattr(fp, TCSANOW, &term);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user