ipc_send_message: use stack frame with fixed size

This commit is contained in:
Michael Stapelberg
2013-01-11 19:09:41 +01:00
parent fc0e80ee7f
commit 7b0d75ee0a
3 changed files with 38 additions and 20 deletions

View File

@ -202,8 +202,8 @@ int ipc_connect(const char *socket_path);
* Returns 0 on success.
*
*/
int ipc_send_message(int sockfd, uint32_t message_size,
uint32_t message_type, const uint8_t *payload);
int ipc_send_message(int sockfd, const uint32_t message_size,
const uint32_t message_type, const uint8_t *payload);
/**
* Reads a message from the given socket file descriptor and stores its length