From c98d8626b1b890fd43f6955d478da15c27db1339 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?John=20T=C3=B6rnblom?= Date: Sun, 30 Dec 2012 20:52:55 +0100 Subject: [PATCH] changed the tvh_write() wrapper take const pointer as agument --- src/tvheadend.h | 2 +- src/wrappers.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/tvheadend.h b/src/tvheadend.h index 23018afe..a601f80e 100644 --- a/src/tvheadend.h +++ b/src/tvheadend.h @@ -454,7 +454,7 @@ int tvh_socket(int domain, int type, int protocol); int tvh_pipe(int flags, th_pipe_t *pipe); -int tvh_write(int fd, void *buf, size_t len); +int tvh_write(int fd, const void *buf, size_t len); void hexdump(const char *pfx, const uint8_t *data, int len); diff --git a/src/wrappers.c b/src/wrappers.c index febe6a8c..5b08d3ce 100644 --- a/src/wrappers.c +++ b/src/wrappers.c @@ -50,7 +50,7 @@ tvh_pipe(int flags, th_pipe_t *p) } int -tvh_write(int fd, void *buf, size_t len) +tvh_write(int fd, const void *buf, size_t len) { ssize_t c;