diff options
author | Rainer Orth <ro@TechFak.Uni-Bielefeld.DE> | 2003-01-27 13:16:59 +0000 |
---|---|---|
committer | Rainer Orth <ro@gcc.gnu.org> | 2003-01-27 13:16:59 +0000 |
commit | 437026ef889dafb9b725fb51e5c542b6283849fe (patch) | |
tree | fa64f6cafd780002c7a3e891c0d512ba9cabb532 /gcc/ada/adaint.c | |
parent | 244d05fb87c29bd539630243bef9b1d0be00fcf2 (diff) | |
download | gcc-437026ef889dafb9b725fb51e5c542b6283849fe.zip gcc-437026ef889dafb9b725fb51e5c542b6283849fe.tar.gz gcc-437026ef889dafb9b725fb51e5c542b6283849fe.tar.bz2 |
init.c (__gnat_error_handler): Make msg const.
* 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
Diffstat (limited to 'gcc/ada/adaint.c')
-rw-r--r-- | gcc/ada/adaint.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gcc/ada/adaint.c b/gcc/ada/adaint.c index 874f091..d820d6d 100644 --- a/gcc/ada/adaint.c +++ b/gcc/ada/adaint.c @@ -366,7 +366,7 @@ __gnat_try_lock (dir, file) 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); @@ -2257,7 +2257,7 @@ int _flush_cache() 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; |