cvs commit: src/lib/libatm Makefile atm_addr.c cache_key.c ip_addr.c libatm.h timer.c

Harti Brandt
Tue Mar 25 11:06:56 PST 2003

On Mon, 24 Mar 2003, Matthew N. Dodd wrote:

The WARNS=5 breaks sparc64. The problem is

struct atminfreq {
	caddr_t	air_buf_addr;

When casting a char * to a struct * you get a warning from gcc, that
you change the required struct alignment. You can work around this

	(struct foo *)(void *)ptr

better yet by getting rid of caddr_t. malloc(3) returns (void *) and
should always be max aligned to the given architecture.


MND>mdodd       2003/03/24 20:29:26 PST
MND>  FreeBSD src repository
MND>  Modified files:
MND>    lib/libatm           Makefile atm_addr.c cache_key.c ip_addr.c
MND>                         libatm.h timer.c
MND>  Log:
MND>  Fix warnings.
MND>  Revision  Changes    Path
MND>  1.5       +2 -1      src/lib/libatm/Makefile
MND>  1.9       +6 -1      src/lib/libatm/atm_addr.c
MND>  1.8       +1 -1      src/lib/libatm/cache_key.c
MND>  1.8       +7 -7      src/lib/libatm/ip_addr.c
MND>  1.6       +5 -5      src/lib/libatm/libatm.h
MND>  1.8       +4 -4      src/lib/libatm/timer.c

harti brandt,,

More information about the cvs-src mailing list