From: Johan Hedberg <johan.hedberg@gmail.com>
To: Lukasz Pawlik <lucas.pawlik@gmail.com>
Cc: linux-bluetooth@vger.kernel.org
Subject: Re: [PATCH] Fix problem with filling ADR with unneeded semicolons
Date: Mon, 16 Aug 2010 18:16:06 +0300 [thread overview]
Message-ID: <20100816151606.GA20356@jh-x301> (raw)
In-Reply-To: <1281969490-22315-1-git-send-email-lucas.pawlik@gmail.com>
Hi Lucasz,
On Mon, Aug 16, 2010, Lukasz Pawlik wrote:
> Previously in a phonebook pull request ADR was filled with six
> semicolons when contact address entry was empty in phonebook. This
> patch fixes this problem. Address is send as an empty string.
> ---
> plugins/vcard.c | 25 +++++++++++++++++++++++++
> 1 files changed, 25 insertions(+), 0 deletions(-)
Thanks for the patch, but it'll need some coding style cleanup before
going upstream:
> +static gboolean address_fields_present(struct phonebook_contact * contact)
No space after *
> + if (contact->country && strlen(contact->country))
> + return TRUE;
> +
The last line isn't really empty byt has an extra tab. Please remove it.
> + if (address_fields_present(contact) == FALSE) {
> + vcard_printf(vcards, "ADR:");
> + return;
There's an extra tab at the end of the line. Please remove it.
> + }
> +
Same here.
Johan
next prev parent reply other threads:[~2010-08-16 15:16 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-08-16 14:38 [PATCH] Fix problem with filling ADR with unneeded semicolons Lukasz Pawlik
2010-08-16 15:16 ` Johan Hedberg [this message]
-- strict thread matches above, loose matches on Subject: below --
2010-08-17 11:10 Lukasz Pawlik
2010-08-17 11:50 ` Johan Hedberg
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=20100816151606.GA20356@jh-x301 \
--to=johan.hedberg@gmail.com \
--cc=linux-bluetooth@vger.kernel.org \
--cc=lucas.pawlik@gmail.com \
/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