git: libutil: Allow suffix to be NULL in humanize_{number, unsigned}()
Aaron LI
aly at crater.dragonflybsd.org
Sat Jun 19 03:40:03 PDT 2021
commit 70fef11b9d0a96af862fff4144190fd5e01f32a8
Author: Aaron LI <aly at aaronly.me>
Date: Thu May 27 19:13:05 2021 +0800
libutil: Allow suffix to be NULL in humanize_{number,unsigned}()
Allow to pass NULL to the suffix argument to these two functions. If
suffix is NULL, then take it as "" (i.e., empty suffix). This case
happens in nvmmctl(8).
Summary of changes:
lib/libutil/humanize_number.c | 5 ++++-
lib/libutil/humanize_unsigned.c | 4 +++-
2 files changed, 7 insertions(+), 2 deletions(-)
http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/70fef11b9d0a96af862fff4144190fd5e01f32a8
--
DragonFly BSD source repository
More information about the Commits
mailing list