Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S261530AbVBADcf (ORCPT ); Mon, 31 Jan 2005 22:32:35 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S261520AbVBADa7 (ORCPT ); Mon, 31 Jan 2005 22:30:59 -0500 Received: from [195.23.16.24] ([195.23.16.24]:25227 "EHLO bipbip.comserver-pie.com") by vger.kernel.org with ESMTP id S261521AbVBADaW (ORCPT ); Mon, 31 Jan 2005 22:30:22 -0500 Message-ID: <1107228508.41fef75c95dad@webmail.grupopie.com> Date: Tue, 1 Feb 2005 03:28:28 +0000 From: "" To: Andrew Morton Cc: "" , "" Subject: [PATCH 2.6] 3/7 use kstrdup library function in parport/probe.c MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="-MOQ11072285087a7c05db6d586fc7cf7cff19c4c9aa4c" User-Agent: Internet Messaging Program (IMP) 3.2.2 X-Originating-IP: 82.154.143.60 Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 3517 Lines: 66 This message is in MIME format. ---MOQ11072285087a7c05db6d586fc7cf7cff19c4c9aa4c Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable This patch removes a private strdup in parport/probe.c, and updates it to= use the kstrdup library function. Signed-off-by: Paulo Marques -- Paulo Marques - www.grupopie.com =20 All that is necessary for the triumph of evil is that good men do nothing= . Edmund Burke (1729 - 1797) ---MOQ11072285087a7c05db6d586fc7cf7cff19c4c9aa4c Content-Type: text/x-diff; name="patch3" Content-Transfer-Encoding: base64 Content-Disposition: attachment; filename="patch3" LS0tIGxpbnV4LTIuNi4xMC9kcml2ZXJzL3BhcnBvcnQvcHJvYmUuYy5vcmlnCTIwMDUtMDEtMzEg MTk6MzU6MDYuNDYwNzM0OTcyICswMDAwCisrKyBsaW51eC0yLjYuMTAvZHJpdmVycy9wYXJwb3J0 L3Byb2JlLmMJMjAwNS0wMS0zMSAxOTozNjowNC40NTA2ODI1M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m8tPmRlc2NyaXB0aW9uKTsKLQkJCQlpbmZvLT5kZXNjcmlwdGlvbiA9IHN0cmR1cChzZXApOwor CQkJCWluZm8tPmRlc2NyaXB0aW9uID0ga3N0cmR1cChzZXAsIEdGUF9LRVJORUwpOwogCQkJfQog CQl9CiAJcm9ja19vbjoK ---MOQ11072285087a7c05db6d586fc7cf7cff19c4c9aa4c-- - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/