diff options
author | Carl Worth <cworth@cworth.org> | 2007-04-10 13:07:09 -0700 |
---|---|---|
committer | Carl Worth <cworth@cworth.org> | 2007-04-10 13:07:09 -0700 |
commit | b0a256aaf3f0fd4491a28fca797aef1ef4b1251d (patch) | |
tree | 0d7be363feca3b97ebf630aad6b2f773f0ae0c91 /src/cairo-output-stream-private.h | |
parent | 5303980f82431a9d084177998a68527b60610241 (diff) | |
download | cairo-b0a256aaf3f0fd4491a28fca797aef1ef4b1251d.tar.gz |
Change _cairo_dtostr to have a void return type
As previously implemented, there's no essential information in the
return value from _cairo_dotostr, (the caller can simply use strlen
to recompute the same value, which is what the only caller is already
doing).
There would be real information in a return value which would return
the result from the call to snprintf for the case where the buffer is
not large enough for the number being printed.
Diffstat (limited to 'src/cairo-output-stream-private.h')
-rw-r--r-- | src/cairo-output-stream-private.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cairo-output-stream-private.h b/src/cairo-output-stream-private.h index 0d5d29c46..26c18cb58 100644 --- a/src/cairo-output-stream-private.h +++ b/src/cairo-output-stream-private.h @@ -107,7 +107,7 @@ _cairo_output_stream_write_hex_string (cairo_output_stream_t *stream, const char *data, size_t length); -cairo_private int +cairo_private void _cairo_dtostr (char *buffer, size_t size, double d); cairo_private void |