--- deliantra/server/common/friend.C 2009/10/12 14:00:57 1.20 +++ deliantra/server/common/friend.C 2009/11/06 13:03:34 1.21 @@ -141,12 +141,10 @@ /* Checks if the given object is already in the friendly list or not * Lauwenmark - 31/07/05 */ -int +static int is_friendly (const object *op) { - objectlink *ol; - - for (ol = first_friendly_object; ol; ol = ol->next) + for (objectlink *ol = first_friendly_object; ol; ol = ol->next) if (ol->ob == op) return 1;