2002-02-06 Pierre Muller <muller@ics.u-strasbg.fr>
authorPierre Muller <muller@sourceware.org>
Wed, 6 Feb 2002 09:27:29 +0000 (09:27 +0000)
committerPierre Muller <muller@sourceware.org>
Wed, 6 Feb 2002 09:27:29 +0000 (09:27 +0000)
* win32-nat.c (_initialize_check_for_gdb_ini):
Add typecast to sprintf argument to suppress a warning.

gdb/ChangeLog
gdb/win32-nat.c
gdb/windows-nat.c

index 493d9b47802130073350248ac05532164a7a7a43..ce6f3ec279b7b445aa9e7288a7659ac74856c883 100644 (file)
@@ -1,6 +1,11 @@
+2002-02-06  Pierre Muller  <muller@ics.u-strasbg.fr>
+
+       * win32-nat.c (_initialize_check_for_gdb_ini): 
+       Add typecast to sprintf argument to suppress a warning.
+
 2002-02-05  Pierre Muller  <muller@ics.u-strasbg.fr>
 
-       win32-nat.c (last_sig): Changed type of variable to target_signal,
+       win32-nat.c (last_sig): Changed type of variable to target_signal,
        to allow easier handling of pass state.
        (DEBUG_EXCEPTION_SIMPLE): New macro, used in handle_exception,
        that gives exception name and address.
index 92a2b5fa68a8b343bf41dc08e4b420796aa200ed..a85d48226ca67e73af326ef4067719ef2360ced5 100644 (file)
@@ -2009,7 +2009,8 @@ _initialize_check_for_gdb_ini (void)
        {
          int len = strlen (oldini);
          char *newini = alloca (len + 1);
-         sprintf (newini, "%.*s.gdbinit", len - (sizeof ("gdb.ini") - 1), oldini);
+         sprintf (newini, "%.*s.gdbinit", 
+           (int) (len - (sizeof ("gdb.ini") - 1)), oldini);
          warning ("obsolete '%s' found. Rename to '%s'.", oldini, newini);
        }
     }
index 92a2b5fa68a8b343bf41dc08e4b420796aa200ed..a85d48226ca67e73af326ef4067719ef2360ced5 100644 (file)
@@ -2009,7 +2009,8 @@ _initialize_check_for_gdb_ini (void)
        {
          int len = strlen (oldini);
          char *newini = alloca (len + 1);
-         sprintf (newini, "%.*s.gdbinit", len - (sizeof ("gdb.ini") - 1), oldini);
+         sprintf (newini, "%.*s.gdbinit", 
+           (int) (len - (sizeof ("gdb.ini") - 1)), oldini);
          warning ("obsolete '%s' found. Rename to '%s'.", oldini, newini);
        }
     }
This page took 0.028485 seconds and 4 git commands to generate.