]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
gdb: fix formatting in solib.c
authorSimon Marchi <simon.marchi@efficios.com>
Fri, 11 Jul 2025 17:22:22 +0000 (13:22 -0400)
committerSimon Marchi <simon.marchi@efficios.com>
Tue, 22 Jul 2025 17:42:05 +0000 (13:42 -0400)
I found these two small nits while working in this file.

Change-Id: Ibdaa57262f3fe363b039fbad746e285fa7b52f8b
Approved-By: Andrew Burgess <aburgess@redhat.com>
gdb/solib.c

index 6d0fded6be8234f8a6bf28cfa67d372da2724d7e..82217856517e7f6b5e5717beeda6b404b8a7a58e 100644 (file)
@@ -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);