Hi Johan, On Thu, Dec 15, 2011 at 7:26 PM, Johan Hedberg <johan.hedberg@xxxxxxxxx> wrote: > Hi Hemant, > > On Thu, Dec 15, 2011, Hemant Gupta wrote: >> Thanks for the comment, I used it since the kernel was using le32, and >> the structure allocated was u32? Dont we require to do the type >> casting? > > No. To my understanding the difference is only annotational, i.e. it's > only there to remind you of the endianness of the variable. In user > space we just use uint32_t but have to remember to call btohl before > using the value for anything. In my code, I am using htobl(passkey), while passkey is sent to kernel. So you mean I need to change it to btohl ? > > Johan -- Best Regards Hemant Gupta ST-Ericsson India -- 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