]> git.ipfire.org Git - thirdparty/libvirt.git/commit
Parse integers more carefully, cont'd.
authorJim Meyering <meyering@redhat.com>
Wed, 14 Nov 2007 10:53:05 +0000 (10:53 +0000)
committerJim Meyering <meyering@redhat.com>
Wed, 14 Nov 2007 10:53:05 +0000 (10:53 +0000)
commit5d25419188d39e4c69c0fd874921e639c4c2cc38
treef0eea0bbc7efd8224d7ef755fe2fbd9c03026622
parent5a6571eba978a727ff9e5429bcef7e374d503414
Parse integers more carefully, cont'd.

* qemud/qemud.c: Replace uses of strtol with uses of xstrtol_i.
  Avoid overflow for very large --timeout=N values.
* src/nodeinfo.c: In linuxNodeInfoMemPopulate and
  linuxNodeInfoCPUPopulate, use xstrtol_i rather than strtol.
  Unlike in qemud.c, here we allow trailing "isspace", and in
  the case of "cpuinfo cpu MHz", also allow a "." terminator,
  since we ignore the decimal and any following digits.
* src/internal.h: Define xstrtol_ui, too.

Author: Jim Meyering <meyering@redhat.com>
ChangeLog
qemud/qemud.c
src/internal.h
src/nodeinfo.c