Make n_spaces return a const char *
authorTom Tromey <tom@tromey.com>
Sat, 11 Dec 2021 22:10:14 +0000 (15:10 -0700)
committerTom Tromey <tom@tromey.com>
Mon, 20 Dec 2021 15:49:27 +0000 (08:49 -0700)
commitdde238e063376f96d52ff27f11b31a447ddbdfea
tree12d55ab85c592669dd02d14817f247bea49dc718
parentdb956d66c94de1bc1ff9ac1c38350f14e81c11f6
Make n_spaces return a const char *

n_spaces keeps the spaces in a static buffer.  If a caller overwrites
these, it may give an incorrect result to a subsequent caller.  So,
make the return type const to help avoid this outcome.
gdb/utils.c
gdb/utils.h