From: John Törnblom Date: Sun, 30 Dec 2012 19:52:55 +0000 (+0100) Subject: changed the tvh_write() wrapper take const pointer as agument X-Git-Tag: v3.5~216 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c98d8626b1b890fd43f6955d478da15c27db1339;p=thirdparty%2Ftvheadend.git changed the tvh_write() wrapper take const pointer as agument --- diff --git a/src/tvheadend.h b/src/tvheadend.h index 23018afee..a601f80e0 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 febe6a8c3..5b08d3cec 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;