Fix crash with "maint print arc"
[binutils-gdb.git] / gdb / ser-uds.c
index 7d216de13d50bcf4d70be6cf9f538f38d5c45fba..ead02ae2070bd3efc690643dd2a6bcafbce76bf4 100644 (file)
@@ -1,6 +1,6 @@
 /* Serial interface for local domain connections on Un*x like systems.
 
-   Copyright (C) 1992-2020 Free Software Foundation, Inc.
+   Copyright (C) 1992-2022 Free Software Foundation, Inc.
 
    This file is part of GDB.
 
@@ -38,8 +38,8 @@ uds_open (struct serial *scb, const char *name)
   if (strlen (name) > UNIX_PATH_MAX - 1)
     {
       warning
-        (_("The socket name is too long.  It may be no longer than %s bytes."),
-         pulongest (UNIX_PATH_MAX - 1L));
+       (_("The socket name is too long.  It may be no longer than %s bytes."),
+        pulongest (UNIX_PATH_MAX - 1L));
       return -1;
     }
 
@@ -111,8 +111,9 @@ static const struct serial_ops uds_ops =
   uds_write_prim
 };
 
+void _initialize_ser_socket ();
 void
-_initialize_ser_socket (void)
+_initialize_ser_socket ()
 {
   serial_add_interface (&uds_ops);
 }