diff options
author | gerald <gerald@f5534014-38df-0310-8fa8-9805f1628bb7> | 2009-04-16 04:05:39 +0000 |
---|---|---|
committer | gerald <gerald@f5534014-38df-0310-8fa8-9805f1628bb7> | 2009-04-16 04:05:39 +0000 |
commit | ebaddf5c97a9bb176d032d80d318588c7e13caf1 (patch) | |
tree | 1f4158ed7e68052c732725d2535039b9523e38de /sync_pipe_write.c | |
parent | 21315531bcf393adebaf5a9316523c8d644a70e1 (diff) |
Fix the last(?) of the Win64 compilation problems.
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@28065 f5534014-38df-0310-8fa8-9805f1628bb7
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); } |