From c5593b51dc98715f7f32a919301b5801ebf1a8ce Mon Sep 17 00:00:00 2001 From: Jameson Nash Date: Mon, 5 Nov 2018 16:03:19 -0500 Subject: warnings: fix code that emits compiler warnings PR-URL: https://github.com/libuv/libuv/pull/2066 Reviewed-By: Ben Noordhuis Reviewed-By: Refael Ackermann --- src/unix/os390.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/unix/os390.c') diff --git a/src/unix/os390.c b/src/unix/os390.c index b43aebfc..c86036e9 100644 --- a/src/unix/os390.c +++ b/src/unix/os390.c @@ -229,8 +229,8 @@ static int getexe(const int pid, char* buf, size_t len) { assert(((Output_buf.Output_data.offsetPath >>24) & 0xFF) == 'A'); /* Get the offset from the lowest 3 bytes */ - Output_path = (char*)(&Output_buf) + - (Output_buf.Output_data.offsetPath & 0x00FFFFFF); + Output_path = (struct Output_path_type*) ((char*) (&Output_buf) + + (Output_buf.Output_data.offsetPath & 0x00FFFFFF)); if (Output_path->len >= len) { errno = ENOBUFS; -- cgit v1.2.3