diff options
author | Simon Marchi <simon.marchi@polymtl.ca> | 2023-02-08 15:36:23 -0500 |
---|---|---|
committer | Simon Marchi <simon.marchi@polymtl.ca> | 2023-02-08 15:46:02 -0500 |
commit | c583a2520616c2736cffc389c89a48b159366e6c (patch) | |
tree | b4925f26506fcee96c16119431c01760f05db95d /gdbsupport/netstuff.h | |
parent | ca7f92c2f15b86b09c4a8ad14806bef666308d31 (diff) | |
download | binutils-users/simark/clang-format.zip binutils-users/simark/clang-format.tar.gz binutils-users/simark/clang-format.tar.bz2 |
Run clang-format.shusers/simark/clang-format
Change-Id: Ia948cc26d534b0dd02702244d52434b1a2093968
Diffstat (limited to 'gdbsupport/netstuff.h')
-rw-r--r-- | gdbsupport/netstuff.h | 11 |
1 files changed, 3 insertions, 8 deletions
diff --git a/gdbsupport/netstuff.h b/gdbsupport/netstuff.h index f9cf3fc..0ac2c8f 100644 --- a/gdbsupport/netstuff.h +++ b/gdbsupport/netstuff.h @@ -31,10 +31,7 @@ class scoped_free_addrinfo { public: /* Default constructor. */ - explicit scoped_free_addrinfo (struct addrinfo *ainfo) - : m_res (ainfo) - { - } + explicit scoped_free_addrinfo (struct addrinfo *ainfo) : m_res (ainfo) {} /* Destructor responsible for free'ing M_RES by calling 'freeaddrinfo'. */ @@ -58,19 +55,17 @@ struct parsed_connection_spec std::string port_str; }; - /* Parse SPEC (which is a string in the form of "ADDR:PORT") and return a 'parsed_connection_spec' structure with the proper fields filled in. Also adjust HINT accordingly. */ extern parsed_connection_spec - parse_connection_spec_without_prefix (std::string spec, - struct addrinfo *hint); +parse_connection_spec_without_prefix (std::string spec, struct addrinfo *hint); /* Parse SPEC (which is a string in the form of "[tcp[6]:|udp[6]:]ADDR:PORT") and return a 'parsed_connection_spec' structure with the proper fields filled in. Also adjust HINT accordingly. */ extern parsed_connection_spec parse_connection_spec (const char *spec, - struct addrinfo *hint); + struct addrinfo *hint); #endif /* COMMON_NETSTUFF_H */ |