]> mj.ucw.cz Git - libucw.git/commit
Fastbuf: Get rid of ->is_fastbuf typechecking hack
authorMartin Mares <mj@ucw.cz>
Sat, 11 Feb 2012 20:17:04 +0000 (21:17 +0100)
committerMartin Mares <mj@ucw.cz>
Sat, 11 Feb 2012 20:17:04 +0000 (21:17 +0100)
commit7cd23fb20722d8101fdfb4017f826a86663776bc
treefe9dd1a3b0e746e6f13ebb45a3aa77239e7b94ba
parentfc44bcb9343984091d9cd1a9474d03d78a988332
Fastbuf: Get rid of ->is_fastbuf typechecking hack

... it breaks C99 aliasing rules and GCC rightfully warns about it.

If we ever want to do such type checking, we might use

#define CAST(f) ((f)->is_fastbuf, (struct xxxx *)(f))

but I guess it is of little use anyway, so I am removing it.
charset/fb-charconv.c
ucw/fastbuf.h
ucw/fb-atomic.c
ucw/fb-direct.c
ucw/fb-file.c
ucw/fb-grow.c
ucw/fb-limfd.c
ucw/fb-mem.c
ucw/fb-mmap.c
ucw/fb-pool.c
ucw/fb-socket.c