diff options
author | Gerald Combs <gerald@wireshark.org> | 2009-04-16 04:05:39 +0000 |
---|---|---|
committer | Gerald Combs <gerald@wireshark.org> | 2009-04-16 04:05:39 +0000 |
commit | e648060f0f307b2df23902338fa5d22c4d490465 (patch) | |
tree | 1f4158ed7e68052c732725d2535039b9523e38de /sync_pipe_write.c | |
parent | 17f0d877faff64832b2a93f24d21b873fe59919e (diff) |
Fix the last(?) of the Win64 compilation problems.
svn path=/trunk/; revision=28065
Diffstat (limited to 'sync_pipe_write.c')
-rw-r--r-- | sync_pipe_write.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/sync_pipe_write.c b/sync_pipe_write.c index efb6eddd9b..4b627b884c 100644 --- a/sync_pipe_write.c +++ b/sync_pipe_write.c @@ -72,12 +72,12 @@ void pipe_write_block(int pipe_fd, char indicator, const char *msg) { int ret; - size_t len; + int len; /*g_warning("write %d enter", pipe_fd);*/ if(msg != NULL) { - len = strlen(msg) + 1; /* including the terminating '\0'! */ + len = (int) strlen(msg) + 1; /* including the terminating '\0'! */ } else { len = 0; } @@ -91,7 +91,7 @@ pipe_write_block(int pipe_fd, char indicator, const char *msg) /* write value (if we have one) */ if(len) { /*g_warning("write %d indicator: %c value len: %u msg: %s", pipe_fd, indicator, len, msg);*/ - ret = write(pipe_fd, msg, len); + ret = (int) write(pipe_fd, msg, len); if(ret == -1) { return; } @@ -109,7 +109,7 @@ sync_pipe_errmsg_to_parent(int pipe_fd, const char *error_msg, { /* first write a "master header" with the length of the two messages plus their "slave headers" */ - pipe_write_header(pipe_fd, SP_ERROR_MSG, strlen(error_msg) + 1 + 4 + strlen(secondary_error_msg) + 1 + 4); + pipe_write_header(pipe_fd, SP_ERROR_MSG, (int) (strlen(error_msg) + 1 + 4 + strlen(secondary_error_msg) + 1 + 4)); pipe_write_block(pipe_fd, SP_ERROR_MSG, error_msg); pipe_write_block(pipe_fd, SP_ERROR_MSG, secondary_error_msg); } |