Avoid using a gcc compiler language extension
commitfc3c3a2083e9f6f89e6bd53e9420e70d1e357c9b
authorRamsay Jones <ramsay@ramsay1.demon.co.uk>
Wed, 18 Feb 2009 18:50:36 +0000 (18 18:50 +0000)
committerShawn O. Pearce <spearce@spearce.org>
Wed, 18 Mar 2009 01:58:30 +0000 (17 18:58 -0700)
treeb290b470aa40a42fc5b24a408ab9250443aed5da
parent1906f2369d2906cfd4affeab0852b67c4a91ddca
Avoid using a gcc compiler language extension

In particular, using pointer arithmetic on void pointers,
despite being quite useful, is not legal in standard C.
Avoiding non-standard C constructs will help in porting
the library to other compilers/platforms.

Signed-off-by: Ramsay Jones <ramsay@ramsay1.demon.co.uk>
Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
src/fileops.c