Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 5 Sep 2007 14:27:13 +0000 (UTC)
From:      Pawel Jakub Dawidek <pjd@FreeBSD.org>
To:        src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org
Subject:   cvs commit: src/lib/libutil expand_number.c
Message-ID:  <200709051427.l85ERDxo053338@repoman.freebsd.org>

next in thread | raw e-mail | index | archive | help
pjd         2007-09-05 14:27:13 UTC

  FreeBSD src repository

  Modified files:
    lib/libutil          expand_number.c 
  Log:
  - Fix strange for loop.
  
    Reported by:  phk
  
  - While here, check the unit before calculating the actually number.
    This way we can return EINVAL for invalid unit instead of ERANGE.
  
  Approved by:    re (kensmith)
  
  Revision  Changes    Path
  1.2       +16 -6     src/lib/libutil/expand_number.c



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200709051427.l85ERDxo053338>