From: Fredrik Noring <noring@nocrew.org>
To: Marcel Holtmann <marcel@holtmann.org>
Cc: BlueZ Mailing List <bluez-devel@lists.sourceforge.net>
Subject: Re: [Bluez-devel] [PATCH] New keytab storage
Date: Sat, 31 Jan 2004 01:55:49 +0100 [thread overview]
Message-ID: <1075510549.14644.135.camel@akka.yeti.nocrew.org> (raw)
In-Reply-To: <1075509170.3594.36.camel@pegasus>
Hi Marcel,
lör 2004-01-31 klockan 01.32 skrev Marcel Holtmann:
> I haven't reviewed the complete patch and at the moment and I am not
> convinced in doing such a big change to the old code. But I have some
> general comments.
Can I ask where the new code is?
> Please send every patch as plain text and not compressed, because this
> makes it easy to take a first look at it within the email client. If you
> got oversize reports from the mailing list manager, don't worry I will
> approve the email by hand.
OK, I'll do that.
> If you do such a big change show us the output of diffstat so everybody
> can see what files are going to be changed.
Sure.
> Don't include files that are generated by autoconf/automake. In your
> case this is Makefile.in. diffstat or lsdiff helps here to check the
> patch for unwanted files.
I'd be happy to skip them. The original source (bluez-utils-2.4.tar.gz)
contains these files for some reason though.
> Follow the coding style. Read the paper from Greg Kroah-Hartman. It is
> very good.
OK.
> Typedefs are ugly, but if you use them,
The main reason for this typedef is that the original code did things
like this:
unint8_t link_key_t[16];
...
memcpy(key0, key1, 16);
which, I think, is a lot worse than:
memcpy(key0, key1, sizeof(link_key_t));
Don't you agree? (An alternative is to use #define LINK_KEY_SIZE 16
instead of course.)
> than the *_t version must match the structure and not define something
> complete different.
What do you mean?
Many thanks for your comments,
Fredrik
next prev parent reply other threads:[~2004-01-31 0:55 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-01-30 23:56 [Bluez-devel] [PATCH] New keytab storage Fredrik Noring
2004-01-31 0:32 ` Marcel Holtmann
2004-01-31 0:55 ` Fredrik Noring [this message]
2004-01-31 1:18 ` Marcel Holtmann
2004-01-31 9:27 ` Fredrik Noring
2004-01-31 15:23 ` Marcel Holtmann
2004-01-31 15:40 ` Fredrik Noring
2004-01-31 15:52 ` Marcel Holtmann
2004-01-31 16:03 ` Fredrik Noring
2004-01-31 18:01 ` Marcel Holtmann
2004-01-31 18:15 ` Fredrik Noring
2004-01-31 10:47 ` Fredrik Noring
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=1075510549.14644.135.camel@akka.yeti.nocrew.org \
--to=noring@nocrew.org \
--cc=bluez-devel@lists.sourceforge.net \
--cc=marcel@holtmann.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