From ced31fb2be1cdcc0dfc8da2b9b00105c3ad903cb Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Sun, 24 Aug 2014 16:01:34 +0200 Subject: message id is unsigned 32-bit MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Mattias Andrée --- src/mds-registry/reexec.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/mds-registry/reexec.c') diff --git a/src/mds-registry/reexec.c b/src/mds-registry/reexec.c index 6e34db8..6247e18 100644 --- a/src/mds-registry/reexec.c +++ b/src/mds-registry/reexec.c @@ -42,7 +42,7 @@ */ size_t marshal_server_size(void) { - size_t i, rc = 2 * sizeof(int) + sizeof(int32_t) + 4 * sizeof(size_t); + size_t i, rc = 2 * sizeof(int) + sizeof(uint32_t) + 4 * sizeof(size_t); hash_entry_t* entry; ssize_t node; @@ -82,7 +82,7 @@ int marshal_server(char* state_buf) buf_set_next(state_buf, int, MDS_REGISTRY_VARS_VERSION); buf_set_next(state_buf, int, connected); - buf_set_next(state_buf, int32_t, message_id); + buf_set_next(state_buf, uint32_t, message_id); buf_set_next(state_buf, size_t, n); mds_message_marshal(&received, state_buf); state_buf += n / sizeof(char); @@ -145,7 +145,7 @@ int unmarshal_server(char* state_buf) /* buf_get_next(state_buf, int, MDS_REGISTRY_VARS_VERSION); */ buf_next(state_buf, int, 1); buf_get_next(state_buf, int, connected); - buf_get_next(state_buf, int32_t, message_id); + buf_get_next(state_buf, uint32_t, message_id); buf_get_next(state_buf, size_t, n); fail_if (mds_message_unmarshal(&received, state_buf)); state_buf += n / sizeof(char); -- cgit v1.2.3-70-g09d2