From: Simon Marchi Date: Fri, 11 Jul 2025 17:22:22 +0000 (-0400) Subject: gdb: fix formatting in solib.c X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e2c192c9a3865e9dddb0504807fce080f10b1a6f;p=thirdparty%2Fbinutils-gdb.git gdb: fix formatting in solib.c I found these two small nits while working in this file. Change-Id: Ibdaa57262f3fe363b039fbad746e285fa7b52f8b Approved-By: Andrew Burgess --- diff --git a/gdb/solib.c b/gdb/solib.c index 6d0fded6be8..82217856517 100644 --- a/gdb/solib.c +++ b/gdb/solib.c @@ -1197,10 +1197,10 @@ info_linker_namespace_command (const char *pattern, int from_tty) escape sequence must be doubled to survive the compiler pass. */ re_comp ("^\\[\\[[0-9]\\+\\]\\]$"); if (re_exec (pattern)) - ns = strtol (pattern+2, nullptr, 10); + ns = strtol (pattern + 2, nullptr, 10); else { - char * end = nullptr; + char *end = nullptr; ns = strtol (pattern, &end, 10); if (end[0] != '\0') error (_("Invalid linker namespace identifier: %s"), pattern);