summaryrefslogtreecommitdiffstats
path: root/libutil/flopen.c
diff options
context:
space:
mode:
authorDag-Erling Smørgrav <des@FreeBSD.org>2010-08-14 14:34:36 +0000
committerDag-Erling Smørgrav <des@FreeBSD.org>2010-08-14 14:34:36 +0000
commit5a56d7a540f54ef7f6880bd2c18aea3c53d70c05 (patch)
tree3912e410a36665aed3e26f82a0a8629ee8057392 /libutil/flopen.c
parenta8f36331941fca2350e8f1e0758d6594dbe6b1e0 (diff)
downloadpw-darwin-5a56d7a540f54ef7f6880bd2c18aea3c53d70c05.tar.gz
pw-darwin-5a56d7a540f54ef7f6880bd2c18aea3c53d70c05.tar.zst
pw-darwin-5a56d7a540f54ef7f6880bd2c18aea3c53d70c05.zip
Simplify expand_number() by combining the (unrolled) loop with the
switch. Since expand_number() does not accept negative numbers, switch from int64_t to uint64_t; this makes it easier to check for overflow. MFC after: 3 weeks
Diffstat (limited to 'libutil/flopen.c')
0 files changed, 0 insertions, 0 deletions