* init.c (__gnat_error_handler): Make msg const.
* gmem.c (convert_addresses): Move declaration ...
* adaint.h: ... here.
* adaint.c (convert_addresses): Adapt addrs type to match
prototype.
* adaint.c (__gnat_try_lock): Cast pid_t to long, adapt format.
From-SVN: r61887
+2003-01-27 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
+
+ * init.c (__gnat_error_handler): Make msg const.
+
+ * gmem.c (convert_addresses): Move declaration ...
+ * adaint.h: ... here.
+ * adaint.c (convert_addresses): Adapt addrs type to match
+ prototype.
+
+ * adaint.c (__gnat_try_lock): Cast pid_t to long, adapt format.
+
2003-01-24 Andreas Schwab <schwab@suse.de>
* ada-tree.h (SET_TYPE_DIGITS_VALUE): Add intermediate cast to
int fd;
sprintf (full_path, "%s%c%s", dir, DIR_SEPARATOR, file);
- sprintf (temp_file, "%s-%d-%d", dir, getpid(), getppid ());
+ sprintf (temp_file, "%s-%ld-%ld", dir, (long) getpid(), (long) getppid ());
/* Create the temporary file and write the process number. */
fd = open (temp_file, O_CREAT | O_WRONLY, 0600);
void
convert_addresses (addrs, n_addr, buf, len)
- void *addrs ATTRIBUTE_UNUSED;
+ char *addrs[] ATTRIBUTE_UNUSED;
int n_addr ATTRIBUTE_UNUSED;
void *buf ATTRIBUTE_UNUSED;
int *len;
extern void __gnat_set_text_mode PARAMS ((int));
extern char *__gnat_ttyname PARAMS ((int));
+extern void convert_addresses PARAMS ((char *[], int,
+ void *, int *));
+
#ifdef IN_RTS
/* Portable definition of strdup, which is not available on all systems. */
#define xstrdup(S) strcpy ((char *) malloc (strlen (S) + 1), S)
static char *tracebk[TB_LEN];
static int cur_tb_len, cur_tb_pos;
-extern void convert_addresses PARAMS ((char *[], int, void *,
- int *));
static void gmem_read_backtrace PARAMS ((void));
static char *spc2nul PARAMS ((char *));
{
struct Exception_Data *exception;
static int recurse = 0;
- char *msg;
+ const char *msg;
/* If this was an explicit signal from a "kill", just resignal it. */
if (SI_FROMUSER (sip))