aboutsummaryrefslogtreecommitdiff
path: root/bfd/libbfd.c
diff options
context:
space:
mode:
authorSteve Chamberlain <steve@cygnus>1991-04-15 15:25:16 +0000
committerSteve Chamberlain <steve@cygnus>1991-04-15 15:25:16 +0000
commit9846338e68f0951443690e50cb678082a86be57e (patch)
tree83da5e493e728f6aa8cf5153cac383b338009a72 /bfd/libbfd.c
parent14825ce9fa772c7024798c83291c822ee86797ea (diff)
downloadfsf-binutils-gdb-9846338e68f0951443690e50cb678082a86be57e.zip
fsf-binutils-gdb-9846338e68f0951443690e50cb678082a86be57e.tar.gz
fsf-binutils-gdb-9846338e68f0951443690e50cb678082a86be57e.tar.bz2
Merged in some changes from Intel,
Added some more prototypes.
Diffstat (limited to 'bfd/libbfd.c')
-rw-r--r--bfd/libbfd.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/bfd/libbfd.c b/bfd/libbfd.c
index 9998690..4a6219b 100644
--- a/bfd/libbfd.c
+++ b/bfd/libbfd.c
@@ -115,7 +115,7 @@ char *
zalloc (size)
size_t size;
{
- char *ptr = malloc (size);
+ char *ptr = (char *) malloc (size);
if ((ptr != NULL) && (size != 0))
bzero (ptr, size);
@@ -136,7 +136,7 @@ zalloc (size)
size_t
bfd_read (ptr, size, nitems, abfd)
- void *ptr;
+ PTR ptr;
size_t size;
size_t nitems;
bfd *abfd;
@@ -146,19 +146,19 @@ bfd_read (ptr, size, nitems, abfd)
size_t
bfd_write (ptr, size, nitems, abfd)
- void *ptr;
+ PTR ptr;
size_t size;
size_t nitems;
bfd *abfd;
{
- return fwrite (ptr, 1, size*nitems, bfd_cache_lookup(abfd));
+ return fwrite (ptr, 1, size*nitems, bfd_cache_lookup(abfd));
}
int
bfd_seek (abfd, position, direction)
-bfd *abfd;
-file_ptr position;
-int direction;
+bfd * CONST abfd;
+CONST file_ptr position;
+CONST int direction;
{
/* For the time being, a bfd may not seek to it's end. The
problem is that we don't easily have a way to recognize