aboutsummaryrefslogtreecommitdiff
path: root/gdb/fbsd-tdep.c
diff options
context:
space:
mode:
authorJohn Baldwin <jhb@FreeBSD.org>2018-09-19 09:44:51 -0700
committerJohn Baldwin <jhb@FreeBSD.org>2018-09-19 12:22:07 -0700
commit07147793e678dac92f6a16f140678f9a5aed21e7 (patch)
tree6af4d0896cf085ba065eda3721c0d32ed8a54a92 /gdb/fbsd-tdep.c
parent23be8da7396ffc4d5492d976e244daaa543eaac9 (diff)
downloadgdb-07147793e678dac92f6a16f140678f9a5aed21e7.zip
gdb-07147793e678dac92f6a16f140678f9a5aed21e7.tar.gz
gdb-07147793e678dac92f6a16f140678f9a5aed21e7.tar.bz2
Add missing spaces after inet_ntop invocations.
gdb/ChangeLog: * fbsd-tdep.c (fbsd_print_sockaddr_in): Style fix. (fbsd_print_sockaddr_in6): Likewise.
Diffstat (limited to 'gdb/fbsd-tdep.c')
-rw-r--r--gdb/fbsd-tdep.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gdb/fbsd-tdep.c b/gdb/fbsd-tdep.c
index d4ffc71..070d448 100644
--- a/gdb/fbsd-tdep.c
+++ b/gdb/fbsd-tdep.c
@@ -892,7 +892,7 @@ fbsd_print_sockaddr_in (const void *sockaddr)
reinterpret_cast<const struct fbsd_sockaddr_in *> (sockaddr);
char buf[INET_ADDRSTRLEN];
- if (inet_ntop(AF_INET, sin->sin_addr, buf, sizeof buf) == nullptr)
+ if (inet_ntop (AF_INET, sin->sin_addr, buf, sizeof buf) == nullptr)
error (_("Failed to format IPv4 address"));
printf_filtered ("%s:%u", buf,
(sin->sin_port[0] << 8) | sin->sin_port[1]);
@@ -907,7 +907,7 @@ fbsd_print_sockaddr_in6 (const void *sockaddr)
reinterpret_cast<const struct fbsd_sockaddr_in6 *> (sockaddr);
char buf[INET6_ADDRSTRLEN];
- if (inet_ntop(AF_INET6, sin6->sin6_addr, buf, sizeof buf) == nullptr)
+ if (inet_ntop (AF_INET6, sin6->sin6_addr, buf, sizeof buf) == nullptr)
error (_("Failed to format IPv6 address"));
printf_filtered ("%s.%u", buf,
(sin6->sin6_port[0] << 8) | sin6->sin6_port[1]);