swc

Unnamed repository; edit this file 'description' to name the repository.
git clone git://git.nihaljere.xyz/swc
Log | Files | Refs | README | LICENSE

commit bc1c4f515a9b59933a8305a1c6ad8591536e52c6
parent 03c7432d6dc85d6afe7cb974da2a46e1db3541f6
Author: Michael Forney <mforney@mforney.org>
Date:   Mon,  5 Jun 2017 00:48:22 -0700

launch: Use size_t for buffer_size

Diffstat:
Mlaunch/protocol.c | 4++--
Mlaunch/protocol.h | 4++--
2 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/launch/protocol.c b/launch/protocol.c @@ -5,7 +5,7 @@ #include <string.h> ssize_t -send_fd(int socket, int fd, const void *buffer, ssize_t buffer_size) +send_fd(int socket, int fd, const void *buffer, size_t buffer_size) { char control[CMSG_SPACE(sizeof(fd))]; struct iovec iov = { @@ -39,7 +39,7 @@ send_fd(int socket, int fd, const void *buffer, ssize_t buffer_size) } ssize_t -receive_fd(int socket, int *fd, void *buffer, ssize_t buffer_size) +receive_fd(int socket, int *fd, void *buffer, size_t buffer_size) { if (!fd) return recv(socket, buffer, buffer_size, 0); diff --git a/launch/protocol.h b/launch/protocol.h @@ -64,7 +64,7 @@ struct swc_launch_event { }; }; -ssize_t send_fd(int socket, int fd, const void *buffer, ssize_t buffer_size); -ssize_t receive_fd(int socket, int *fd, void *buffer, ssize_t buffer_size); +ssize_t send_fd(int socket, int fd, const void *buffer, size_t buffer_size); +ssize_t receive_fd(int socket, int *fd, void *buffer, size_t buffer_size); #endif