Addressed warnings from -Wall.
This commit is contained in:
@@ -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");
|
||||
|
||||
Reference in New Issue
Block a user