Looks like typo ...



Hi,

Browsing the sources, I came to the following code in corba_object.c:

395 static void profile_hash(gpointer item, gpointer data)
396 {
397         ORBit_Object_info *info = (ORBit_Object_info *)item;
398         CORBA_unsigned_long *retval = (CORBA_unsigned_long *)data;
399 
400         g_assert(info);
401         g_assert(retval);
402 
403         *retval ^= info->object_key._length;
404 
405         if(info->profile_type == IOP_TAG_INTERNET_IOP) {
406                 *retval ^= !info->tag.iopinfo.port;
407         } else if(info->profile_type == IOP_TAG_ORBIT_SPECIFIC) {
408                 *retval ^= g_str_hash(info->tag.orbitinfo.unix_sock_path);
409                 *retval ^= !info->tag.orbitinfo.ipv6_port;
410         }
411 }

Isn't it supposed lines 406 and 409 to be
    406                 *retval ^= ~info->tag.iopinfo.port;
and
    409                 *retval ^= ~info->tag.orbitinfo.ipv6_port;

?

Regards,
-velco




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]