-Wwrite-strings: gdbserver's 'port' parsing
[deliverable/binutils-gdb.git] / gdb / gdbserver / remote-utils.c
index 6a2cc04f6201b3694a526230e117cd62b361e081..37a64022578abe5b468a02eb3ee6e126eab65745 100644 (file)
@@ -217,9 +217,9 @@ handle_accept_event (int err, gdb_client_data client_data)
    NAME is the filename used for communication.  */
 
 void
-remote_prepare (char *name)
+remote_prepare (const char *name)
 {
-  char *port_str;
+  const char *port_str;
 #ifdef USE_WIN32API
   static int winsock_initialized;
 #endif
@@ -284,9 +284,9 @@ remote_prepare (char *name)
    NAME is the filename used for communication.  */
 
 void
-remote_open (char *name)
+remote_open (const char *name)
 {
-  char *port_str;
+  const char *port_str;
 
   port_str = strchr (name, ':');
 #ifdef USE_WIN32API
This page took 0.024579 seconds and 4 git commands to generate.