From owner-freebsd-hackers@FreeBSD.ORG Sun Jan 2 07:41:30 2011 Return-Path: Delivered-To: hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id C01411065670 for ; Sun, 2 Jan 2011 07:41:30 +0000 (UTC) (envelope-from lists@eitanadler.com) Received: from mail-iw0-f182.google.com (mail-iw0-f182.google.com [209.85.214.182]) by mx1.freebsd.org (Postfix) with ESMTP id 943868FC1B for ; Sun, 2 Jan 2011 07:41:30 +0000 (UTC) Received: by iwn39 with SMTP id 39so12879189iwn.13 for ; Sat, 01 Jan 2011 23:41:30 -0800 (PST) Received: by 10.231.14.9 with SMTP id e9mr6837277iba.105.1293954090190; Sat, 01 Jan 2011 23:41:30 -0800 (PST) MIME-Version: 1.0 Received: by 10.231.178.195 with HTTP; Sat, 1 Jan 2011 23:41:10 -0800 (PST) In-Reply-To: References: <6BEFA669-2E1F-44E6-897A-0A51DA939A74@gmail.com> From: Eitan Adler Date: Sun, 2 Jan 2011 02:41:10 -0500 Message-ID: To: hackers@freebsd.org Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: base64 Cc: Subject: [patch] have rtprio check that arguments are numeric; change atoi to strtol X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 02 Jan 2011 07:41:30 -0000 PiBKdXN0IHNldCB0aGUgc2Vjb25kIGFyZ3VtZW50IHRvIHN0cnRvbCB0byBzb21ldGhpbmcgbm9u LU5VTEwgYW5kIHRoZW4gY2hlY2sKPiB0aGUgdmFsdWUgcmV0dXJuZWQ7IHRoYXQgd2lsbCBoZWxw IHByb3ZpZGUgdGhlIGVycm9yIGhhbmRsaW5nIHdpdGgKPiBzaW1wbGljaXR5IHRoYXQgeW91IGRl c2lyZSA6KS4KCkhvdyBhY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