Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 2 Jan 2011 02:41:10 -0500
From:      Eitan Adler <lists@eitanadler.com>
To:        hackers@freebsd.org
Subject:   [patch] have rtprio check that arguments are numeric; change atoi to strtol
Message-ID:  <AANLkTimdEpZ1DBoKU9g6w-j=F9KS0ONvo9racgOesdPf@mail.gmail.com>
In-Reply-To: <AANLkTimmQHRoQOZBgfheds=_sv5SMzD9DrPfYk9em7j8@mail.gmail.com>
References:  <AANLkTimiJPiHBSw5i5TVJYfh9uGOyrNJx%2BoUPeB%2Bt%2BY_@mail.gmail.com> <6BEFA669-2E1F-44E6-897A-0A51DA939A74@gmail.com> <AANLkTimmQHRoQOZBgfheds=_sv5SMzD9DrPfYk9em7j8@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
PiBKdXN0IHNldCB0aGUgc2Vjb25kIGFyZ3VtZW50IHRvIHN0cnRvbCB0byBzb21ldGhpbmcgbm9u
LU5VTEwgYW5kIHRoZW4gY2hlY2sKPiB0aGUgdmFsdWUgcmV0dXJuZWQ7IHRoYXQgd2lsbCBoZWxw
IHByb3ZpZGUgdGhlIGVycm9yIGhhbmRsaW5nIHdpdGgKPiBzaW1wbGljaXR5IHRoYXQgeW91IGRl
c2lyZSA6KS4KCkhvdyBhYm91dCB0aGlzIHZlcnNpb24/IEl0IGFsc28gY29ycmVjdHMgYSBjb3B5
L3Bhc3RlIGVycm9yIEkgaGF2ZSBhYm92ZQoKSW5kZXg6IHJ0cHJpby5jCj09PT09PT09PT09PT09
PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT0KLS0t
IHJ0cHJpby5jIMKgIMKgKHJldmlzaW9uIDIxNjY3OSkKKysrIHJ0cHJpby5jIMKgIMKgKHdvcmtp
bmcgY29weSkKQEAgLTU2LDYgKzU2LDcgQEAKwqAgwqAgwqAgwqBjaGFyIMKgICpwOwrCoCDCoCDC
oCDCoGludCDCoCDCoCBwcm9jID0gMDs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