Trivial formatting cleanups
Just another clang-format run to catch regressions that have snuck in via other patches. Signed-off-by: Dan Cross <patchdev@fat-dragon.org>
This commit is contained in:
parent
2de957db34
commit
303810acaa
@ -15,7 +15,7 @@ char *www_last10() {
|
||||
|
||||
FILE *fptr = fopen("last10v2.dat", "rb");
|
||||
if (fptr != NULL) {
|
||||
for ( ; n < 10; ++n)
|
||||
for (; n < 10; ++n)
|
||||
if (fread(&callers[n], sizeof(callers[n]), 1, fptr) != sizeof(callers[n]))
|
||||
break;
|
||||
fclose(fptr);
|
||||
|
@ -183,8 +183,8 @@ char *www_msgs_messagelist(struct user_record *user, int conference, int area, i
|
||||
stralloc_cats(&page, "</div>\n");
|
||||
if (skip + 50 <= mhrs->msg_count) {
|
||||
snprintf(buffer, sizeof buffer,
|
||||
"<div class=\"msg-summary-next\"><a href=\"%smsgs/%d/%d/?skip=%d\">Next</a></div>\n",
|
||||
conf.www_url, conference, area, skip + 50);
|
||||
"<div class=\"msg-summary-next\"><a href=\"%smsgs/%d/%d/?skip=%d\">Next</a></div>\n",
|
||||
conf.www_url, conference, area, skip + 50);
|
||||
stralloc_cats(&page, buffer);
|
||||
}
|
||||
|
||||
@ -452,7 +452,7 @@ char *www_msgs_messageview(struct user_record *user, int conference, int area, i
|
||||
stralloc_cats(&page, "<textarea name=\"body\" rows=\"25\" cols=\"79\" wrap=\"soft\" id=\"replybody\">");
|
||||
|
||||
stralloc_append1(&page, ' ');
|
||||
stralloc_append1(&page, from[0]);
|
||||
stralloc_append1(&page, from[0]);
|
||||
stralloc_cats(&page, "> ");
|
||||
|
||||
replybody = (char *)malloz(strlen(body) + 1);
|
||||
@ -705,15 +705,15 @@ int www_send_msg(struct user_record *user, char *to, char *subj, int conference,
|
||||
if (conf.mail_conferences[conference]->nettype == NETWORK_FIDO) {
|
||||
if (conf.mail_conferences[conference]->fidoaddr->point) {
|
||||
snprintf(buffer, sizeof buffer, "%d:%d/%d.%d",
|
||||
conf.mail_conferences[conference]->fidoaddr->zone,
|
||||
conf.mail_conferences[conference]->fidoaddr->net,
|
||||
conf.mail_conferences[conference]->fidoaddr->node,
|
||||
conf.mail_conferences[conference]->fidoaddr->point);
|
||||
conf.mail_conferences[conference]->fidoaddr->zone,
|
||||
conf.mail_conferences[conference]->fidoaddr->net,
|
||||
conf.mail_conferences[conference]->fidoaddr->node,
|
||||
conf.mail_conferences[conference]->fidoaddr->point);
|
||||
} else {
|
||||
snprintf(buffer, sizeof buffer, "%d:%d/%d",
|
||||
conf.mail_conferences[conference]->fidoaddr->zone,
|
||||
conf.mail_conferences[conference]->fidoaddr->net,
|
||||
conf.mail_conferences[conference]->fidoaddr->node);
|
||||
conf.mail_conferences[conference]->fidoaddr->zone,
|
||||
conf.mail_conferences[conference]->fidoaddr->net,
|
||||
conf.mail_conferences[conference]->fidoaddr->node);
|
||||
}
|
||||
jsf.LoID = JAMSFLD_OADDRESS;
|
||||
jsf.HiID = 0;
|
||||
@ -722,11 +722,11 @@ int www_send_msg(struct user_record *user, char *to, char *subj, int conference,
|
||||
JAM_PutSubfield(jsp, &jsf);
|
||||
|
||||
snprintf(buffer, sizeof buffer, "%d:%d/%d.%d %08lx",
|
||||
conf.mail_conferences[conference]->fidoaddr->zone,
|
||||
conf.mail_conferences[conference]->fidoaddr->net,
|
||||
conf.mail_conferences[conference]->fidoaddr->node,
|
||||
conf.mail_conferences[conference]->fidoaddr->point,
|
||||
generate_msgid());
|
||||
conf.mail_conferences[conference]->fidoaddr->zone,
|
||||
conf.mail_conferences[conference]->fidoaddr->net,
|
||||
conf.mail_conferences[conference]->fidoaddr->node,
|
||||
conf.mail_conferences[conference]->fidoaddr->point,
|
||||
generate_msgid());
|
||||
|
||||
jsf.LoID = JAMSFLD_MSGID;
|
||||
jsf.HiID = 0;
|
||||
|
Reference in New Issue
Block a user