aboutsummaryrefslogtreecommitdiff
path: root/gdb/win32-nat.c
diff options
context:
space:
mode:
authorPierre Muller <muller@sourceware.org>2002-02-06 09:27:29 +0000
committerPierre Muller <muller@sourceware.org>2002-02-06 09:27:29 +0000
commit58fa08f090cbcafe7dba6835ac8ae7164e46ec0d (patch)
tree30f35fe3630eea092364ca53a6639ba980856c41 /gdb/win32-nat.c
parent7393af7c90e44987e82f41be0692ec4c19620595 (diff)
downloadgdb-58fa08f090cbcafe7dba6835ac8ae7164e46ec0d.zip
gdb-58fa08f090cbcafe7dba6835ac8ae7164e46ec0d.tar.gz
gdb-58fa08f090cbcafe7dba6835ac8ae7164e46ec0d.tar.bz2
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.
Diffstat (limited to 'gdb/win32-nat.c')
-rw-r--r--gdb/win32-nat.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/gdb/win32-nat.c b/gdb/win32-nat.c
index 92a2b5f..a85d482 100644
--- a/gdb/win32-nat.c
+++ b/gdb/win32-nat.c
@@ -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);
}
}