* nto-tdep.c (nto_target): Replace deprecated call to
authorPierre Muller <muller@sourceware.org>
Tue, 3 May 2011 08:46:06 +0000 (08:46 +0000)
committerPierre Muller <muller@sourceware.org>
Tue, 3 May 2011 08:46:06 +0000 (08:46 +0000)
cygwin_conv_to_posix_path functions by cygwin_conv_path calls.

gdb/ChangeLog
gdb/nto-tdep.c

index 484ace57220be54989f224bbf13f2d6c9363f334..2422cadcecf42e048e163c19967d38bf5bf2b222 100644 (file)
@@ -1,3 +1,8 @@
+2011-05-03  Pierre Muller  <muller@ics.u-strasbg.fr>
+
+       * nto-tdep.c (nto_target): Replace deprecated call to
+       cygwin_conv_to_posix_path functions by cygwin_conv_path calls.
+
 2011-05-03  Jan Kratochvil  <jan.kratochvil@redhat.com>
 
        Fix false GCC warning.
index 6dd789260654966bd93c5d0a707be7724839205c..1e3047203642c70d8712f3129dcf061779d22c6f 100644 (file)
@@ -59,9 +59,9 @@ nto_target (void)
 #ifdef __CYGWIN__
   static char buf[PATH_MAX];
   if (p)
-    cygwin_conv_to_posix_path (p, buf);
+    cygwin_conv_path (CCP_WIN_A_TO_POSIX, p, buf, PATH_MAX);
   else
-    cygwin_conv_to_posix_path (default_nto_target, buf);
+    cygwin_conv_path (CCP_WIN_A_TO_POSIX, default_nto_target, buf, PATH_MAX);
   return buf;
 #else
   return p ? p : default_nto_target;