aboutsummaryrefslogtreecommitdiffstats
path: root/src/mds-registry/reexec.c
diff options
context:
space:
mode:
authorMattias Andrée <maandree@operamail.com>2014-08-24 16:01:34 +0200
committerMattias Andrée <maandree@operamail.com>2014-08-24 16:01:34 +0200
commitced31fb2be1cdcc0dfc8da2b9b00105c3ad903cb (patch)
treee6544671f170bac8258e946f515dfde471125cbf /src/mds-registry/reexec.c
parentdoc protocol stuff except message passing related stuff (diff)
downloadmds-ced31fb2be1cdcc0dfc8da2b9b00105c3ad903cb.tar.gz
mds-ced31fb2be1cdcc0dfc8da2b9b00105c3ad903cb.tar.bz2
mds-ced31fb2be1cdcc0dfc8da2b9b00105c3ad903cb.tar.xz
message id is unsigned 32-bit
Signed-off-by: Mattias Andrée <maandree@operamail.com>
Diffstat (limited to 'src/mds-registry/reexec.c')
-rw-r--r--src/mds-registry/reexec.c6
1 files changed, 3 insertions, 3 deletions
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);