From patchwork Wed Sep 19 19:25:02 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: John Baldwin X-Patchwork-Id: 29474 Received: (qmail 14710 invoked by alias); 19 Sep 2018 19:25:55 -0000 Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org Delivered-To: mailing list gdb-patches@sourceware.org Received: (qmail 14697 invoked by uid 89); 19 Sep 2018 19:25:55 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-25.2 required=5.0 tests=AWL, BAYES_00, GIT_PATCH_0, GIT_PATCH_1, GIT_PATCH_2, GIT_PATCH_3, SPF_HELO_PASS, SPF_SOFTFAIL autolearn=ham version=3.3.2 spammy=january, January, IPv4, ipv4 X-HELO: mail.baldwin.cx Received: from bigwig.baldwin.cx (HELO mail.baldwin.cx) (96.47.65.170) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Wed, 19 Sep 2018 19:25:53 +0000 Received: from ralph.com (ralph.baldwin.cx [66.234.199.215]) by mail.baldwin.cx (Postfix) with ESMTPSA id 7186A10B476 for ; Wed, 19 Sep 2018 15:25:51 -0400 (EDT) From: John Baldwin To: gdb-patches@sourceware.org Subject: [PUSHED OBV] Add missing spaces after inet_ntop invocations. Date: Wed, 19 Sep 2018 12:25:02 -0700 Message-Id: <20180919192502.67215-1-jhb@FreeBSD.org> X-IsSubscribed: yes 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 + + * fbsd-tdep.c (fbsd_print_sockaddr_in): Style fix. + (fbsd_print_sockaddr_in6): Likewise. + 2018-09-19 Richard Bunt Chris January 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 (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 (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]);