Lint; remove bcopy/bzero.

This commit is contained in:
John Gilmore 1992-09-26 05:39:13 +00:00
parent a5a7c719fc
commit df4d92f60f
2 changed files with 10 additions and 3 deletions

View File

@ -1,3 +1,10 @@
Fri Sep 25 22:36:52 1992 John Gilmore (gnu@cygnus.com)
* coff-z8k.c (func_da, func_jr): Lint.
* coffcode.h: Use memset rather than bzero.
* elf.c: Use memcpy rather than bcopy.
* tekhex.c: Use memset rather than bzero.
Fri Sep 25 19:14:48 1992 John Gilmore (gnu@cygnus.com)
Add Adobe a.out support.

View File

@ -1567,7 +1567,7 @@ unsigned int written)
for (j = 0; j < native->u.syment.n_numaux; j++)
{
AUXENT buf1;
bzero((PTR)&buf, AUXESZ);
memset((PTR)&buf, 0, AUXESZ);
coff_swap_aux_out(abfd,
&( (native + j + 1)->u.auxent), type, class, &buf1);
bfd_write((PTR) (&buf1), 1, AUXESZ, abfd);
@ -2300,7 +2300,7 @@ coff_section_symbol (abfd, name)
};
struct foo *f;
f = (struct foo *) bfd_alloc_by_size_t (abfd, sizeof (*f));
bzero ((char *) f, sizeof (*f));
memset ((char *) f, 0, sizeof (*f));
coff_symbol_from (abfd, sym)->native = csym = f->e;
}
csym[0].u.syment.n_sclass = C_STAT;
@ -3059,7 +3059,7 @@ bfd *abfd)
bfd_error = no_memory;
return (NULL);
} /* on error */
bzero(newstring, i);
memset(newstring, 0, i);
strncpy(newstring, internal_ptr->u.syment._n._n_name, i-1);
internal_ptr->u.syment._n._n_n._n_offset = (int) newstring;
internal_ptr->u.syment._n._n_n._n_zeroes = 0;