Add missing spaces after inet_ntop invocations.

gdb/ChangeLog:

	* fbsd-tdep.c (fbsd_print_sockaddr_in): Style fix.
	(fbsd_print_sockaddr_in6): Likewise.
This commit is contained in:
John Baldwin
2018-09-19 09:44:51 -07:00
parent 23be8da739
commit 07147793e6
2 changed files with 7 additions and 2 deletions

View File

@ -1,3 +1,8 @@
2018-09-19 John Baldwin <jhb@FreeBSD.org>
* fbsd-tdep.c (fbsd_print_sockaddr_in): Style fix.
(fbsd_print_sockaddr_in6): Likewise.
2018-09-19 Richard Bunt <richard.bunt@arm.com>
Chris January <chris.january@arm.com>

View File

@ -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]);