changed the tvh_write() wrapper take const pointer as agument

This commit is contained in:
John Törnblom 2012-12-30 20:52:55 +01:00
parent c43e59f9eb
commit c98d8626b1
2 changed files with 2 additions and 2 deletions

View 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);

View 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;