From: Johan Hedberg <johan.hedberg@gmail.com>
To: Hemant Gupta <hemantgupta.ste@gmail.com>
Cc: Hemant Gupta <hemant.gupta@stericsson.com>,
linux-bluetooth@vger.kernel.org
Subject: Re: [PATCHv2] mgmt: Add support for Passkey handling
Date: Thu, 15 Dec 2011 15:56:16 +0200 [thread overview]
Message-ID: <20111215135616.GA3164@x220> (raw)
In-Reply-To: <CACj007=R3bmR2e=xgAdSXPXb12OdkAPXh_0qGba+mM46KBjjyQ@mail.gmail.com>
Hi Hemant,
On Thu, Dec 15, 2011, Hemant Gupta wrote:
> Tanks 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.
Johan
next prev parent reply other threads:[~2011-12-15 13:56 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-12-15 11:54 [PATCHv2] mgmt: Add support for Passkey handling Hemant Gupta
2011-12-15 12:08 ` Johan Hedberg
2011-12-15 12:20 ` Andrei Emeltchenko
2011-12-15 13:47 ` Hemant Gupta
2011-12-15 13:56 ` Johan Hedberg [this message]
2011-12-15 13:59 ` Hemant Gupta
2011-12-15 14:09 ` Johan Hedberg
2011-12-15 14:10 ` Hemant Gupta
2011-12-15 14:09 ` Hemant Gupta
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20111215135616.GA3164@x220 \
--to=johan.hedberg@gmail.com \
--cc=hemant.gupta@stericsson.com \
--cc=hemantgupta.ste@gmail.com \
--cc=linux-bluetooth@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox