mirror of
https://github.com/tbamud/tbamud.git
synced 2026-02-20 14:34:06 +01:00
Addressed warnings from -Wall.
This commit is contained in:
parent
5119361f15
commit
cacd2c2dd2
8 changed files with 9 additions and 8 deletions
|
|
@ -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");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue