diff options
author | Pedro Alves <palves@redhat.com> | 2015-11-17 15:17:44 +0000 |
---|---|---|
committer | Pedro Alves <palves@redhat.com> | 2015-11-17 15:18:32 +0000 |
commit | 0ae1c716a162ce43a63c16c37aa8c6caaa484650 (patch) | |
tree | 630c06563fd7d07422ec860b14472865d79dc327 /gdb/utils.c | |
parent | cd78b7a16778046c0cfa4818780ea94a9a90c32c (diff) | |
download | gdb-0ae1c716a162ce43a63c16c37aa8c6caaa484650.zip gdb-0ae1c716a162ce43a63c16c37aa8c6caaa484650.tar.gz gdb-0ae1c716a162ce43a63c16c37aa8c6caaa484650.tar.bz2 |
[C++/mingw] Misc alloca casts
gdb/ChangeLog:
2015-11-17 Pedro Alves <palves@redhat.com>
* exec.c (exec_file_attach, symfile_bfd_open) [__GO32__ || _WIN32
|| __CYGWIN__]: Add casts.
* utils.c (gdb_filename_fnmatch): Add cast.
* windows-nat.c (windows_create_inferior): Add cast.
Diffstat (limited to 'gdb/utils.c')
-rw-r--r-- | gdb/utils.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gdb/utils.c b/gdb/utils.c index bb13522..284fbbb 100644 --- a/gdb/utils.c +++ b/gdb/utils.c @@ -3356,14 +3356,14 @@ gdb_filename_fnmatch (const char *pattern, const char *string, int flags) /* Replace '\' by '/' in both strings. */ - pattern_slash = alloca (strlen (pattern) + 1); + pattern_slash = (char *) alloca (strlen (pattern) + 1); strcpy (pattern_slash, pattern); pattern = pattern_slash; for (; *pattern_slash != 0; pattern_slash++) if (IS_DIR_SEPARATOR (*pattern_slash)) *pattern_slash = '/'; - string_slash = alloca (strlen (string) + 1); + string_slash = (char *) alloca (strlen (string) + 1); strcpy (string_slash, string); string = string_slash; for (; *string_slash != 0; string_slash++) |