From: Simon Marchi Date: Thu, 29 Oct 2015 17:41:13 +0000 (-0400) Subject: gdbserver/server.c: Cast return value of memmem X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=d6f85c8421acaf09fa5a25ae2621819889d54038;p=binutils-gdb.git gdbserver/server.c: Cast return value of memmem gdb/gdbserver/ChangeLog: * server.c (handle_search_memory_1): Cast return value of memmem. --- diff --git a/gdb/gdbserver/ChangeLog b/gdb/gdbserver/ChangeLog index a0716426145..4397ff96036 100644 --- a/gdb/gdbserver/ChangeLog +++ b/gdb/gdbserver/ChangeLog @@ -1,3 +1,8 @@ +2015-10-29 Simon Marchi + + * server.c (handle_search_memory_1): Cast return value of + memmem. + 2015-10-29 Simon Marchi * server.c (write_qxfer_response): Change type of data to diff --git a/gdb/gdbserver/server.c b/gdb/gdbserver/server.c index b2f0f6789aa..fd2804beaa4 100644 --- a/gdb/gdbserver/server.c +++ b/gdb/gdbserver/server.c @@ -891,7 +891,8 @@ handle_search_memory_1 (CORE_ADDR start_addr, CORE_ADDR search_space_len, ? search_space_len : search_buf_size); - found_ptr = memmem (search_buf, nr_search_bytes, pattern, pattern_len); + found_ptr = (gdb_byte *) memmem (search_buf, nr_search_bytes, pattern, + pattern_len); if (found_ptr != NULL) {