From e2c192c9a3865e9dddb0504807fce080f10b1a6f Mon Sep 17 00:00:00 2001 From: Simon Marchi Date: Fri, 11 Jul 2025 13:22:22 -0400 Subject: [PATCH] gdb: fix formatting in solib.c I found these two small nits while working in this file. Change-Id: Ibdaa57262f3fe363b039fbad746e285fa7b52f8b Approved-By: Andrew Burgess --- gdb/solib.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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); -- 2.47.2