This is the mail archive of the gdb-patches@sources.redhat.com mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

[patch] remote-mips.c param fixes


FYI,

More fallout from the K&R->ISO conversion.

	Andrew
Thu Aug  3 15:02:23 2000  Andrew Cagney  <cagney@b1.cygnus.com>

	* remote-mips.c (mips_expect, mips_expect_timeout, common_open,
 	fputs_readable): Make string pointer arguments constant.

Index: remote-mips.c
===================================================================
RCS file: /cvs/cvsfiles/devo/gdb/remote-mips.c,v
retrieving revision 2.105
diff -p -r2.105 remote-mips.c
*** remote-mips.c	2000/07/30 01:49:39	2.105
--- remote-mips.c	2000/08/03 07:56:52
*************** fputc_readable (int ch, struct ui_file *
*** 526,532 ****
     ^x notation or in hex.  */
  
  static void
! fputs_readable (char *string, struct ui_file *file)
  {
    int c;
  
--- 526,532 ----
     ^x notation or in hex.  */
  
  static void
! fputs_readable (const char *string, struct ui_file *file)
  {
    int c;
  
*************** fputs_readable (char *string, struct ui_
*** 540,548 ****
   */
  
  int
! mips_expect_timeout (char *string, int timeout)
  {
!   char *p = string;
  
    if (remote_debug)
      {
--- 540,548 ----
   */
  
  int
! mips_expect_timeout (const char *string, int timeout)
  {
!   const char *p = string;
  
    if (remote_debug)
      {
*************** mips_expect_timeout (char *string, int t
*** 596,602 ****
   */
  
  int
! mips_expect (char *string)
  {
    return mips_expect_timeout (string, 2);
  }
--- 596,602 ----
   */
  
  int
! mips_expect (const char *string)
  {
    return mips_expect_timeout (string, 2);
  }
*************** mips_initialize (void)
*** 1499,1505 ****
  /* Open a connection to the remote board.  */
  static void
  common_open (struct target_ops *ops, char *name, int from_tty,
! 	     enum mips_monitor_type new_monitor, char *new_monitor_prompt)
  {
    char *ptype;
    char *serial_port_name;
--- 1499,1506 ----
  /* Open a connection to the remote board.  */
  static void
  common_open (struct target_ops *ops, char *name, int from_tty,
! 	     enum mips_monitor_type new_monitor,
! 	     const char *new_monitor_prompt)
  {
    char *ptype;
    char *serial_port_name;

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]