+2002-02-25 Andrew Cagney <ac131313@redhat.com>
+
+ * 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.
+
2002-02-25 Daniel Jacobowitz <drow@mvista.com>
From Eliot Dresselhaus <eliot@ayrnetworks.com>:
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);
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
Then return to command level. */
NORETURN void
-perror_with_name (char *string)
+perror_with_name (const char *string)
{
char *err;
char *combined;
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;
/* VARARGS */
int
-query (char *ctlstr,...)
+query (const char *ctlstr,...)
{
va_list args;
register int answer;