From 47b667dea5dd1f1c4fc7a1304163c254ffa16161 Mon Sep 17 00:00:00 2001 From: Andrew Cagney Date: Thu, 26 May 2005 20:49:03 +0000 Subject: 2005-05-26 Andrew Cagney * command.h (add_setshow_integer_cmd): Make VAR an integer. * cli/cli-decode.c (add_setshow_integer_cmd): Update to match. * valops.c (value_string): Add a cast. * eval.c (evaluate_subexp_standard): Use gdb_byte for byte buffers. * breakpoint.c (re_enable_breakpoints_in_shlibs): Use gdb_byte for byte buffers. * target.h (struct target_ops): For to_insert_hw_breakpoint and to_remove_hw_breakpoint use gdb_byte for byte buffer parameters. * breakpoint.h (struct bp_location): Make shadow_contents a gdb_byte buffer. * cli/cli-setshow.c (do_setshow_command): Fix cast. * cli/cli-dump.c (restore_section_callback) (restore_binary_file): Use gdb_byte for byte buffers. * proc-service.c (ps_ptwrite, ps_ptread, ps_pdwrite): Fix casts. (ps_xfer_memory): Use gdb_byte for byte buffers. * tracepoint.c (mem2hex): Use gdb_byte for byte buffers, and char for string buffers. * ser-tcp.c (net_open): Make len a socklen_t. --- gdb/ser-tcp.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'gdb/ser-tcp.c') diff --git a/gdb/ser-tcp.c b/gdb/ser-tcp.c index abe6ed4..6b19c31 100644 --- a/gdb/ser-tcp.c +++ b/gdb/ser-tcp.c @@ -187,7 +187,8 @@ net_open (struct serial *scb, const char *name) /* Got something. Is it an error? */ { - int res, err, len; + int res, err; + socklen_t len; len = sizeof(err); /* On Windows, the fourth parameter to getsockopt is a "char *"; on UNIX systems it is generally "void *". The cast to "void *" -- cgit v1.1