summaryrefslogtreecommitdiff
path: root/core
diff options
context:
space:
mode:
authorJoshua Haberman <joshua@reverberate.org>2011-01-29 23:22:33 -0800
committerJoshua Haberman <joshua@reverberate.org>2011-01-29 23:22:33 -0800
commit02a8cdfff29d6a17836847490a06dfe535855d52 (patch)
tree00e0a91324cd54a726e8bd4b8e9acc760197b75b /core
parent93099cccd1e6428d6be45553c7dd7746bbd65e93 (diff)
Fixes to decoder, stdio, textprinter.
Diffstat (limited to 'core')
-rw-r--r--core/upb_stream_vtbl.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/core/upb_stream_vtbl.h b/core/upb_stream_vtbl.h
index 8e8971f..a6990bc 100644
--- a/core/upb_stream_vtbl.h
+++ b/core/upb_stream_vtbl.h
@@ -34,10 +34,10 @@ typedef bool (*upb_bytesrc_getstr_fptr)(
// upb_bytesink.
typedef upb_strlen_t (*upb_bytesink_write_fptr)(
upb_bytesink *bytesink, void *buf, upb_strlen_t count);
-typedef bool (*upb_bytesink_putstr_fptr)(
+typedef upb_strlen_t (*upb_bytesink_putstr_fptr)(
upb_bytesink *bytesink, upb_string *str, upb_status *status);
typedef upb_strlen_t (*upb_bytesink_vprintf_fptr)(
- upb_status *status, const char *fmt, va_list args);
+ upb_bytesink *bytesink, upb_status *status, const char *fmt, va_list args);
// Vtables for the above interfaces.
typedef struct {
@@ -153,7 +153,7 @@ INLINE upb_status *upb_bytesink_status(upb_bytesink *sink) {
INLINE upb_strlen_t upb_bytesink_printf(upb_bytesink *sink, upb_status *status, const char *fmt, ...) {
va_list args;
va_start(args, fmt);
- upb_strlen_t ret = sink->vtbl->vprintf(status, fmt, args);
+ upb_strlen_t ret = sink->vtbl->vprintf(sink, status, fmt, args);
va_end(args);
return ret;
}
generated by cgit on debian on lair
contact matthew@masot.net with questions or feedback