public inbox for gdb-patches@sourceware.org
 help / color / mirror / Atom feed
* [PUSHED OBV] Add missing spaces after inet_ntop invocations.
@ 2018-09-19 19:25 John Baldwin
  0 siblings, 0 replies; only message in thread
From: John Baldwin @ 2018-09-19 19:25 UTC (permalink / raw)
  To: gdb-patches

gdb/ChangeLog:

	* fbsd-tdep.c (fbsd_print_sockaddr_in): Style fix.
	(fbsd_print_sockaddr_in6): Likewise.
---
 gdb/ChangeLog   | 5 +++++
 gdb/fbsd-tdep.c | 4 ++--
 2 files changed, 7 insertions(+), 2 deletions(-)

diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index 8675c15372..c3922e2e51 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -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>
 
diff --git a/gdb/fbsd-tdep.c b/gdb/fbsd-tdep.c
index d4ffc71ae5..070d448b4e 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]);
-- 
2.18.0

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2018-09-19 19:25 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-09-19 19:25 [PUSHED OBV] Add missing spaces after inet_ntop invocations John Baldwin

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).