changed the tvh_write() wrapper take const pointer as agument
This commit is contained in:
parent
c43e59f9eb
commit
c98d8626b1
2 changed files with 2 additions and 2 deletions
|
@ -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);
|
||||
|
||||
|
|
|
@ -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;
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue