diff options
author | Andrew Cagney <cagney@redhat.com> | 2002-02-26 03:29:55 +0000 |
---|---|---|
committer | Andrew Cagney <cagney@redhat.com> | 2002-02-26 03:29:55 +0000 |
commit | 6972bc8bef0025bdf7458a55d2b85f178d8e9dbc (patch) | |
tree | d502ce62af09b69e4e7a0eb59770017aa134d7fd /gdb/defs.h | |
parent | aa32f823fcb27092ab18e7a2023b091fb7c72f3a (diff) | |
download | gdb-6972bc8bef0025bdf7458a55d2b85f178d8e9dbc.zip gdb-6972bc8bef0025bdf7458a55d2b85f178d8e9dbc.tar.gz gdb-6972bc8bef0025bdf7458a55d2b85f178d8e9dbc.tar.bz2 |
* 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/defs.h')
-rw-r--r-- | gdb/defs.h | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -568,7 +568,7 @@ extern void null_cleanup (void *); extern int myread (int, char *, int); -extern int query (char *, ...) ATTR_FORMAT (printf, 1, 2); +extern int query (const char *, ...) ATTR_FORMAT (printf, 1, 2); extern void init_page_info (void); @@ -698,9 +698,9 @@ extern CORE_ADDR string_to_core_addr (const char *my_string); extern void fprintf_symbol_filtered (struct ui_file *, char *, enum language, int); -extern NORETURN void perror_with_name (char *) ATTR_NORETURN; +extern NORETURN void perror_with_name (const char *) ATTR_NORETURN; -extern void print_sys_errmsg (char *, int); +extern void print_sys_errmsg (const char *, int); /* From regex.c or libc. BSD 4.4 declares this with the argument type as "const char *" in unistd.h, so we can't declare the argument |