Hi Alex, > Fixes the value of RESET_FAILED_CONTACT_COUNTER_RP_SIZE and > RESET_FAILED_CONTACT_COUNTER_RP_SIZE macros to respect the > associated struct. > --- > > Hi! I was playing with the libbluetooth and found these two constants > wrongly defined. I actually checked with the Core spec that the structs > are fine... but I still have a very very naive question: > > Why don't you use sizeof(some_struct) and be happy??? the original kernel code this is based on is from 2001 and we have not bothered to change it. I think there also were some gcc version that had problems with sizeof(struct xxx) when we needed packed structs. Take it as some legacy that has not changed in the last 12 years. Regards Marcel -- To unsubscribe from this list: send the line "unsubscribe linux-bluetooth" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html