Fix more warnings.

This commit is contained in:
Zach Langley
2014-11-08 08:38:20 -08:00
parent 0ded4cf7e2
commit 33c6d50e3c
2 changed files with 6 additions and 6 deletions

View File

@@ -102,7 +102,7 @@ static void sub_write_to_char(char_data *ch, char *tokens[], void *otokens[], ch
strcat(sb,HMHR((char_data *) otokens[i])); strcat(sb,HMHR((char_data *) otokens[i]));
break; break;
case '¨': case '`':
if (!otokens[i]) if (!otokens[i])
strcat(sb,"something"); strcat(sb,"something");
else else
@@ -149,7 +149,7 @@ void sub_write(char *arg, char_data *ch, byte find_invis, int targets)
tokens[++i] = ++s; tokens[++i] = ++s;
break; break;
case '¨': case '`':
/* get obj_data, move to next token */ /* get obj_data, move to next token */
type[i] = *p; type[i] = *p;
*s = '\0'; *s = '\0';

View File

@@ -194,7 +194,7 @@ static variable_name_t VariableNameTable[eMSDP_MAX+1] =
{ eMSDP_GAUGE_4, "GAUGE_4", STRING_GUI(s_Gauge4) }, { eMSDP_GAUGE_4, "GAUGE_4", STRING_GUI(s_Gauge4) },
{ eMSDP_GAUGE_5, "GAUGE_5", STRING_GUI(s_Gauge5) }, { eMSDP_GAUGE_5, "GAUGE_5", STRING_GUI(s_Gauge5) },
{ eMSDP_MAX, "", 0 } /* This must always be last. */ { eMSDP_MAX, "", false, false, false, false, 0, 0, 0, NULL } /* This must always be last. */
}; };
/****************************************************************************** /******************************************************************************
@@ -2256,12 +2256,12 @@ static void SendMSSP( descriptor_t *apDescriptor )
static MSSP_t MSSPTable[] = static MSSP_t MSSPTable[] =
{ {
/* Required */ /* Required */
{ "NAME", MUD_NAME }, /* Change this in protocol.h */ { "NAME", MUD_NAME, NULL }, /* Change this in protocol.h */
{ "PLAYERS", FUNCTION_CALL( GetMSSP_Players ) }, { "PLAYERS", FUNCTION_CALL( GetMSSP_Players ) },
{ "UPTIME" , FUNCTION_CALL( GetMSSP_Uptime ) }, { "UPTIME" , FUNCTION_CALL( GetMSSP_Uptime ) },
/* Generic */ /* Generic */
{ "CRAWL DELAY", "-1" }, { "CRAWL DELAY", "-1", NULL },
/* /*
{ "HOSTNAME", "" }, { "HOSTNAME", "" },
{ "PORT", "" }, { "PORT", "" },
@@ -2359,7 +2359,7 @@ static void SendMSSP( descriptor_t *apDescriptor )
{ "SSL", "0" }, { "SSL", "0" },
{ "ZMP", "0" }, { "ZMP", "0" },
*/ */
{ NULL, NULL } /* This must always be last. */ { NULL, NULL, NULL } /* This must always be last. */
}; };
/* Begin the subnegotiation sequence */ /* Begin the subnegotiation sequence */