summaryrefslogtreecommitdiff
path: root/distrib/sets/lists/base/md.mvme88k
diff options
context:
space:
mode:
authorMatthew Dempsky <matthew@cvs.openbsd.org>2012-06-26 14:53:24 +0000
committerMatthew Dempsky <matthew@cvs.openbsd.org>2012-06-26 14:53:24 +0000
commit98d4eeada8bec1625d6a480d3139018eb12b9abd (patch)
tree874b69c1bd0dc872cdefec19d63fa2f9f1faa14a /distrib/sets/lists/base/md.mvme88k
parentd14eab152633551a34c3058feb21fd6030c5a822 (diff)
Use nl_langinfo(RADIXCHAR) instead of localeconv()->decimal_point in
printf() and avoid calling it unless needed (i.e., when we have a floating point value to print). This isn't a big concern currently due to our limited locale support and current localeconv() implementation, but it's still technically a data race and implementing POSIX 2008 per-thread locales is likely to make it worse. nl_langinfo() isn't guaranteed by POSIX to be thread-safe either, but at least our current implementation is thread-safe and it's a simpler interface to keep that way. Printing floating point values isn't async-signal-safe anyway due to gdtoa()'s use of malloc(), so that's not an issue. ok deraadt, stsp, millert
Diffstat (limited to 'distrib/sets/lists/base/md.mvme88k')
0 files changed, 0 insertions, 0 deletions