]> xenbits.xensource.com Git - libvirt.git/commit
cgroup: Replace sscanf with virStrToLong_ll
authorMatthias Bolte <matthias.bolte@googlemail.com>
Tue, 30 Mar 2010 14:20:41 +0000 (16:20 +0200)
committerMatthias Bolte <matthias.bolte@googlemail.com>
Thu, 1 Apr 2010 10:53:41 +0000 (12:53 +0200)
commit73b45bfbffa25e196c6095692a4619404a583ec8
tree54022ff2c3313ce3222fe4ebac11aa2f0a33d2c4
parent56bac4a2215dbadddee3fbbbb6bdb16e11e41115
cgroup: Replace sscanf with virStrToLong_ll

The switch from %lli to %lld in virCgroupGetValueI64 is intended,
as virCgroupGetValueU64 uses base 10 too, and virCgroupSetValueI64
uses %lld to format the number to string.

Parsing is stricter now and doesn't accept trailing characters
after the actual value anymore.
src/util/cgroup.c