Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S261520AbVBADhQ (ORCPT ); Mon, 31 Jan 2005 22:37:16 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S261524AbVBADeU (ORCPT ); Mon, 31 Jan 2005 22:34:20 -0500 Received: from [195.23.16.24] ([195.23.16.24]:30091 "EHLO bipbip.comserver-pie.com") by vger.kernel.org with ESMTP id S261528AbVBADae (ORCPT ); Mon, 31 Jan 2005 22:30:34 -0500 Message-ID: <1107228519.41fef7678e901@webmail.grupopie.com> Date: Tue, 1 Feb 2005 03:28:39 +0000 From: "" To: Andrew Morton Cc: "" , "" Subject: [PATCH 2.6] 6/7 replace net_sysctl_strdup by kstrdup MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="-MOQ1107228519642d90996170cada1401fe29fd423b47" 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: 5548 Lines: 91 This message is in MIME format. ---MOQ1107228519642d90996170cada1401fe29fd423b47 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable This patch removes a strdup implmentation in the networking layer (net_sysctl_strdup), 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) ---MOQ1107228519642d90996170cada1401fe29fd423b47 Content-Type: text/x-diff; name="patch6" Content-Transfer-Encoding: base64 Content-Disposition: attachment; filename="patch6" ZGlmZiAtdXByTiAtWCBkb250ZGlmZiB2YW5pbGxhLTIuNi4xMS1yYzItYms5L2luY2x1ZGUvbGlu dXgvbmV0ZGV2aWNlLmggbGludXgtMi42LjExLXJjMi1iazkvaW5jbHVkZS9saW51eC9uZXRkZXZp Y2UuaAotLS0gdmFuaWxsYS0yLjYuMTEtcmMyLWJrOS9pbmNsdWRlL2xpbnV4L25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wo= ---MOQ1107228519642d90996170cada1401fe29fd423b47-- - 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/