Date: Wed, 21 Oct 2009 18:31:54 +0000 (UTC) From: Ed Schouten <ed@FreeBSD.org> To: cvs-src-old@freebsd.org Subject: cvs commit: src/sbin/sysctl sysctl.c Message-ID: <200910211832.n9LIWHhE069404@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
ed 2009-10-21 18:31:54 UTC FreeBSD src repository Modified files: sbin/sysctl sysctl.c Log: SVN rev 198340 on 2009-10-21 18:31:54Z by ed Make input parsing in Farhenheit actually work. Don't clobber *p with '\0' when testing whether it has the value of 'F'. Just use the semantics of strtof() properly. If it returns p, we know that it parsed the string until it reached 'C' or 'F'. The code has not changed since it has been imported (r161951, Sep 3, 2006). Submitted by: Alexandre Perrin <kaworu@kaworu.ch> MFC after: 1 week Revision Changes Path 1.91 +5 -5 src/sbin/sysctl/sysctl.c
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200910211832.n9LIWHhE069404>