diff options
author | marha <marha@users.sourceforge.net> | 2012-08-28 14:07:02 +0200 |
---|---|---|
committer | marha <marha@users.sourceforge.net> | 2012-08-28 14:07:02 +0200 |
commit | 05d67ae9117e5157fd1a5175dde6d7e48caf4653 (patch) | |
tree | 601c92c99a901b165664df7482c7baf538d4d7c5 /xorg-server/os/utils.c | |
parent | b3462c12542a69eeaa3fe90fddfbb15d30c18158 (diff) | |
download | vcxsrv-05d67ae9117e5157fd1a5175dde6d7e48caf4653.tar.gz vcxsrv-05d67ae9117e5157fd1a5175dde6d7e48caf4653.tar.bz2 vcxsrv-05d67ae9117e5157fd1a5175dde6d7e48caf4653.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 947f8673a..04bcbc61f 100644 --- a/xorg-server/os/utils.c +++ b/xorg-server/os/utils.c @@ -1924,6 +1924,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 |