Addressed warnings from -Wall.

This commit is contained in:
wyld-sw
2017-01-20 15:13:37 -05:00
parent 5119361f15
commit cacd2c2dd2
8 changed files with 9 additions and 8 deletions

View File

@@ -71,7 +71,7 @@ static void show_obj_to_char(struct obj_data *obj, struct char_data *ch, int mod
}
if ((mode == 0) && obj->description) {
if (!GET_OBJ_VAL(obj, 1) == 0 || OBJ_SAT_IN_BY(obj)) {
if (GET_OBJ_VAL(obj, 1) != 0 || OBJ_SAT_IN_BY(obj)) {
temp = OBJ_SAT_IN_BY(obj);
for (temp = OBJ_SAT_IN_BY(obj); temp; temp = NEXT_SITTING(temp)) {
if (temp == ch)
@@ -1481,7 +1481,7 @@ ACMD(do_users)
"UNDEFINED",
state, idletime, timestr);
if (d->host && *d->host)
if (*d->host)
sprintf(line + strlen(line), "[%s]\r\n", d->host);
else
strcat(line, "[Hostname unknown]\r\n");