]> git.ipfire.org Git - thirdparty/util-linux.git/commit
lib/strutils: follow const in parse_size()
authorKarel Zak <kzak@redhat.com>
Fri, 20 Jul 2018 10:52:55 +0000 (12:52 +0200)
committerKarel Zak <kzak@redhat.com>
Fri, 20 Jul 2018 10:54:58 +0000 (12:54 +0200)
commitd54b83156f8c4c18367130c054a688f5424bfef6
tree64ad939b0b7c4b779c978f013d16ba29889e664e
parent8a7aeeda6777e3547ec060ac486a276152f069ee
lib/strutils: follow const in parse_size()

* don't cast from char to const char

* don't share endptr from strtoxxx() with rest of the code
  as the end pointer is char, but code works with const chars

Signed-off-by: Karel Zak <kzak@redhat.com>
lib/strutils.c