diff options
author | marha <marha@users.sourceforge.net> | 2012-08-28 14:07:02 +0200 |
---|---|---|
committer | marha <marha@users.sourceforge.net> | 2012-09-04 14:23:04 +0200 |
commit | 9dec848b23cf905ded387820f2893425cc00d545 (patch) | |
tree | 4933836d801d8569a31cd5689e5f8eceeb4f78ff /xorg-server/os/utils.c | |
parent | 9891a8cd45663a5431bbae63ccc41c6570a60d5b (diff) | |
download | vcxsrv-9dec848b23cf905ded387820f2893425cc00d545.tar.gz vcxsrv-9dec848b23cf905ded387820f2893425cc00d545.tar.bz2 vcxsrv-9dec848b23cf905ded387820f2893425cc00d545.zip |
fontconfig mesa xserver git update 28 Aug 2012
Diffstat (limited to 'xorg-server/os/utils.c')
-rw-r--r-- | xorg-server/os/utils.c | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/xorg-server/os/utils.c b/xorg-server/os/utils.c index 3e3d97011..43842c067 100644 --- a/xorg-server/os/utils.c +++ b/xorg-server/os/utils.c @@ -1987,6 +1987,20 @@ xstrtokenize(const char *str, const char *separators) return NULL; } +/* Format a signed number into a string in a signal safe manner. The string + * should be at least 21 characters in order to handle all int64_t values. + */ +void +FormatInt64(int64_t num, char *string) +{ + if (num < 0) { + string[0] = '-'; + num *= -1; + string++; + } + FormatUInt64(num, string); +} + /* Format a number into a string in a signal safe manner. The string should be * at least 21 characters in order to handle all uint64_t values. */ void |