summaryrefslogtreecommitdiff
path: root/gdb/utils.c
diff options
context:
space:
mode:
authorAndrew Cagney <cagney@redhat.com>2002-02-26 03:29:55 +0000
committerAndrew Cagney <cagney@redhat.com>2002-02-26 03:29:55 +0000
commit86214c1ec81683425cd84bde94de51ed5d88a7fb (patch)
treeb6147ce1a4ec87feab3e10f1ad665ff78729f73e /gdb/utils.c
parent879782b6f1ac569d34d65271461f57a6a7acbef8 (diff)
downloadgdb-86214c1ec81683425cd84bde94de51ed5d88a7fb.tar.gz
* utils.c (perror_with_name): Make string parameter constant.
(print_sys_errmsg): Ditto. (query): Ditto. * defs.h (perror_with_name): Update. (print_sys_errmsg): Update. (query): Update.
Diffstat (limited to 'gdb/utils.c')
-rw-r--r--gdb/utils.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/gdb/utils.c b/gdb/utils.c
index 8646020d9c7..5d64083ae6b 100644
--- a/gdb/utils.c
+++ b/gdb/utils.c
@@ -764,7 +764,7 @@ safe_strerror (int errnum)
Then return to command level. */
NORETURN void
-perror_with_name (char *string)
+perror_with_name (const char *string)
{
char *err;
char *combined;
@@ -788,7 +788,7 @@ perror_with_name (char *string)
as the file name for which the error was encountered. */
void
-print_sys_errmsg (char *string, int errcode)
+print_sys_errmsg (const char *string, int errcode)
{
char *err;
char *combined;
@@ -1201,7 +1201,7 @@ gdb_print_host_address (void *addr, struct ui_file *stream)
/* VARARGS */
int
-query (char *ctlstr,...)
+query (const char *ctlstr,...)
{
va_list args;
register int answer;