]> git.ipfire.org Git - thirdparty/tvheadend.git/commitdiff
changed the tvh_write() wrapper take const pointer as agument
authorJohn Törnblom <john.tornblom@gmail.com>
Sun, 30 Dec 2012 19:52:55 +0000 (20:52 +0100)
committerJohn Törnblom <john.tornblom@gmail.com>
Sun, 30 Dec 2012 19:52:55 +0000 (20:52 +0100)
src/tvheadend.h
src/wrappers.c

index 23018afee8efd7da27030a4efb09348da80e13bd..a601f80e0e5b67bad5bf9e2f3b53ef301f69ceeb 100644 (file)
@@ -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);
 
index febe6a8c3dfe9593205632878db0b916de2c5d40..5b08d3cec73daea065380d0b363f021aa8e90d1f 100644 (file)
@@ -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;