]> xenbits.xensource.com Git - libvirt.git/commit
util: Use g_ascii_strtoll
authorMartin Kletzander <mkletzan@redhat.com>
Fri, 31 Mar 2023 12:44:11 +0000 (14:44 +0200)
committerMartin Kletzander <mkletzan@redhat.com>
Wed, 14 Jun 2023 10:47:55 +0000 (12:47 +0200)
commit2ed41d7cd9901ee0bf445988d7357e2843637587
treeb8a7ec8519625266d21526193f123c8a7109c305
parentfd340227a7023cc8022b38bd81f8f293ce410bff
util: Use g_ascii_strtoll

This has two main advantages:

- it parses the number with C locale explicitly

- it behaves the same on Windows as on Linux and BSD

both of which are wanted behaviours.

Signed-off-by: Martin Kletzander <mkletzan@redhat.com>
Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
src/util/virstring.c