public inbox for linux-bluetooth@vger.kernel.org
 help / color / mirror / Atom feed
From: Johan Hedberg <johan.hedberg@gmail.com>
To: Rafal Michalski <michalski.raf@gmail.com>
Cc: linux-bluetooth@vger.kernel.org
Subject: Re: [PATCH 2/2 v2] Fix fetching non-empty single owner vCard
Date: Wed, 26 Jan 2011 14:49:07 +0200	[thread overview]
Message-ID: <20110126124907.GB11799@jh-x301> (raw)
In-Reply-To: <1296045187-28072-2-git-send-email-michalski.raf@gmail.com>

Hi Rafal,

On Wed, Jan 26, 2011, Rafal Michalski wrote:
> Previously only empty owner vCard fetching was handled.
> This patch makes that fetching empty (by default) and non-empty
> (filled somehow by the user) single owner vCard is handled.
> ---
>  plugins/phonebook-tracker.c |    3 ++-
>  1 files changed, 2 insertions(+), 1 deletions(-)

Still one coding style issue here:

> diff --git a/plugins/phonebook-tracker.c b/plugins/phonebook-tracker.c
> index 4e37f1c..353b5cb 100644
> --- a/plugins/phonebook-tracker.c
> +++ b/plugins/phonebook-tracker.c
> @@ -1922,7 +1922,8 @@ void *phonebook_get_entry(const char *folder, const char *id,
>  	data->cb = cb;
>  	data->vcardentry = TRUE;
>  
> -	if (strncmp(id, CONTACT_ID_PREFIX, strlen(CONTACT_ID_PREFIX)) == 0)
> +	if (g_str_has_prefix(id, CONTACT_ID_PREFIX) == TRUE ||
> +		g_strcmp0(id, TRACKER_DEFAULT_CONTACT_ME) == 0)
>  		query = g_strdup_printf(CONTACTS_QUERY_FROM_URI, id, id, id, id,
>  					id, id, id, id, id, id, id, id, id);

The split second line of the if-statment should be indented by at least
two tabs so that it's distinguishable from the rest of the code. Please
send a v3.

Johan

  reply	other threads:[~2011-01-26 12:49 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-01-26 12:33 [PATCH 1/2 v2] Remove unnecessary ordering from single vCard query Rafal Michalski
2011-01-26 12:33 ` [PATCH 2/2 v2] Fix fetching non-empty single owner vCard Rafal Michalski
2011-01-26 12:49   ` Johan Hedberg [this message]
2011-01-26 12:46 ` [PATCH 1/2 v2] Remove unnecessary ordering from single vCard query 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=20110126124907.GB11799@jh-x301 \
    --to=johan.hedberg@gmail.com \
    --cc=linux-bluetooth@vger.kernel.org \
    --cc=michalski.raf@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