mirror of
https://github.com/tbamud/tbamud.git
synced 2026-01-23 01:16:09 +01:00
Fix more warnings and some style.
This commit is contained in:
parent
4e27091e57
commit
0ded4cf7e2
6 changed files with 48 additions and 45 deletions
|
|
@ -1282,7 +1282,7 @@ EVENTFUNC(get_protocols)
|
|||
struct descriptor_data *d;
|
||||
struct mud_event_data *pMudEvent;
|
||||
char buf[MAX_STRING_LENGTH];
|
||||
int len;
|
||||
size_t len;
|
||||
|
||||
if (event_obj == NULL)
|
||||
return 0;
|
||||
|
|
@ -1298,9 +1298,9 @@ EVENTFUNC(get_protocols)
|
|||
if (d->pProtocol->pVariables[eMSDP_XTERM_256_COLORS]->ValueInt)
|
||||
len += snprintf(buf + len, MAX_STRING_LENGTH - len, "\tO[\toColors\tO] \tw256\tn | ");
|
||||
else if (d->pProtocol->pVariables[eMSDP_ANSI_COLORS]->ValueInt)
|
||||
len += snprintf(buf + len, MAX_STRING_LENGTH - len, "\tO[\toColors\tO] \twAnsi\tn | ");
|
||||
len += snprintf(buf + len, MAX_STRING_LENGTH - len, "\tO[\toColors\tO] \twAnsi\tn | ");
|
||||
else
|
||||
len += snprintf(buf + len, MAX_STRING_LENGTH - len, "[Colors] No Color | ");
|
||||
len += snprintf(buf + len, MAX_STRING_LENGTH - len, "[Colors] No Color | ");
|
||||
|
||||
len += snprintf(buf + len, MAX_STRING_LENGTH - len, "\tO[\toMXP\tO] \tw%s\tn | ", d->pProtocol->bMXP ? "Yes" : "No");
|
||||
len += snprintf(buf + len, MAX_STRING_LENGTH - len, "\tO[\toMSDP\tO] \tw%s\tn | ", d->pProtocol->bMSDP ? "Yes" : "No");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue