]> git.ipfire.org Git - thirdparty/rrdtool-1.x.git/commit
Simplify first_weekday under Windows
authorWolfgang Stöggl <c72578@yahoo.de>
Tue, 18 Jun 2019 08:20:55 +0000 (10:20 +0200)
committerTobias Oetiker <tobi@oetiker.ch>
Tue, 18 Jun 2019 12:44:52 +0000 (14:44 +0200)
commitc9a46d1b77a0f212a75169d9cd051e5e3bf7558b
treefb73186c63c22f26aa45aafa9a55aebd1fa77fd3
parente3a1c280f50c5288d3b000aa17c6a7788430cf33
Simplify first_weekday under Windows

Use LOCALE_IFIRSTDAYOFWEEK | LOCALE_RETURN_NUMBER. In this case,
the function GetLocaleInfoEx() retrieves the value as a number instead
of a string.
According to: GetLocaleInfoEx function (winnls.h) | Microsoft Docs

sscanf() is not required any more to convert a char array to an int
src/rrd_graph.c
src/rrd_rpncalc.c