mirror of
https://gitea.psi.ch/ELOG/elog.git
synced 2026-09-12 19:33:03 +00:00
Fixed compiler warnings
This commit is contained in:
parent
caf4266aaa
commit
90291455f7
@ -2264,7 +2264,7 @@ int sendmail(LOGBOOK *lbs, char *smtp_host, char *from, char *to, char *text, ch
|
|||||||
n = strbreak(to, list, MAX_N_EMAIL, ",", FALSE);
|
n = strbreak(to, list, MAX_N_EMAIL, ",", FALSE);
|
||||||
|
|
||||||
for (i = 0; i < n; i++) {
|
for (i = 0; i < n; i++) {
|
||||||
if (list[i] == 0 || strchr(list[i], '@') == NULL)
|
if (list[i][0] == 0 || strchr(list[i], '@') == NULL)
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
snprintf(str, strsize - 1, "RCPT TO: <%s>\r\n", list[i]);
|
snprintf(str, strsize - 1, "RCPT TO: <%s>\r\n", list[i]);
|
||||||
@ -4446,23 +4446,18 @@ int el_retrieve(LOGBOOK *lbs, int message_id, char *date, char attr_list[MAX_N_A
|
|||||||
el_decode(message, "Encoding: ", encoding, 80);
|
el_decode(message, "Encoding: ", encoding, 80);
|
||||||
|
|
||||||
if (attachment) {
|
if (attachment) {
|
||||||
/* break apart attachements */
|
/* break apart attachments */
|
||||||
for (i = 0; i < MAX_ATTACHMENTS; i++)
|
|
||||||
if (attachment[i] != NULL)
|
|
||||||
attachment[i][0] = 0;
|
|
||||||
|
|
||||||
for (i = 0; i < MAX_ATTACHMENTS; i++) {
|
for (i = 0; i < MAX_ATTACHMENTS; i++) {
|
||||||
if (attachment[i] != NULL) {
|
attachment[i][0] = 0;
|
||||||
if (i == 0)
|
if (i == 0)
|
||||||
p = strtok(attachment_all, ",");
|
p = strtok(attachment_all, ",");
|
||||||
else
|
else
|
||||||
p = strtok(NULL, ",");
|
p = strtok(nullptr, ",");
|
||||||
|
|
||||||
if (p != NULL)
|
if (p != nullptr)
|
||||||
strcpy(attachment[i], p);
|
strcpy(attachment[i], p);
|
||||||
else
|
else
|
||||||
break;
|
break;
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user