Return-Path: MIME-Version: 1.0 In-Reply-To: <2d5a2c100910291334n6e97013cnc71d658b45496bf0@mail.gmail.com> References: <1256253562-22532-1-git-send-email-jaikumar@google.com> <20091028233425.GA13183@jh-x301> <20091028235434.GA13715@jh-x301> <20091029001531.GA14617@jh-x301> <2d5a2c100910291334n6e97013cnc71d658b45496bf0@mail.gmail.com> From: Jaikumar Ganesh Date: Thu, 29 Oct 2009 14:04:36 -0700 Message-ID: Subject: Re: [PATCH] Update SDP storage records when a record is deleted. To: Luiz Augusto von Dentz Cc: linux-bluetooth@vger.kernel.org Content-Type: multipart/mixed; boundary=001636e1f0fc7cc0570477194322 Sender: linux-bluetooth-owner@vger.kernel.org List-ID: --001636e1f0fc7cc0570477194322 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Hi Johan: On Thu, Oct 29, 2009 at 1:34 PM, Luiz Augusto von Dentz wrote: > Hi, > > They look so much better now :D Attached. > > -- > Luiz Augusto von Dentz > Engenheiro de Computa=E7=E3o > --001636e1f0fc7cc0570477194322 Content-Type: text/x-diff; charset=US-ASCII; name="0001-Fix-handling-of-SDP-records.patch" Content-Disposition: attachment; filename="0001-Fix-handling-of-SDP-records.patch" Content-Transfer-Encoding: base64 X-Attachment-Id: f_g1e0686n0 RnJvbSBhYjViNGRhMzg3YmRkMWQzNDYxYThhNDVkMDVhNGM2YTEzMTU3ZTZhIE1vbiBTZXAgMTcg MDA6MDA6MDAgMjAwMQpGcm9tOiBKYWlrdW1hciBHYW5lc2ggPGphaWt1bWFyQGdvb2dsZS5jb20+ CkRhdGU6IFRodSwgMjkgT2N0IDIwMDkgMTQ6MDE6MzYgLTA3MDAKU3ViamVjdDogW1BBVENIXSBG aXggaGFuZGxpbmcgb2YgU0RQIHJlY29yZHMuCgpXZSB3ZXJlIGRlbGV0aW5nIHRoZSBTRFAgcmVj b3JkcyBvbmx5IGlmIGEgZGV2aWNlIHdhcyByZWdpc3RlcmVkIGZvcgp0aG9zZSBVVUlE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