cvs commit: src/sys/dev/raid/aac aac.c

Matthew Dillon dillon at apollo.backplane.com
Mon Jul 26 13:38:15 PDT 2004


    p.s. I think it's just fine to use a (void *) cast in 
    double-cast cases.  e.g.

    sc->aac_common = (void *)((uint8_t *)sc->aac_common + 8192);

    The verbosity of casting to the exact pointer type after
    previously casting to an 8 bit type to perform pointer
    arithmatic is not necessary.

					-Matt
					Matthew Dillon 
					<dillon at xxxxxxxxxxxxx>


:joerg       2004/07/26 09:03:23 PDT
:
:DragonFly src repository
:
:  Modified files:
:    sys/dev/raid/aac     aac.c 
:  Log:
:  Don't use cast as lvalues.
:  
:  Revision  Changes    Path
:  1.14      +2 -1      src/sys/dev/raid/aac/aac.c
:
:
:http://www.dragonflybsd.org/cvsweb/src/sys/dev/raid/aac/aac.c.diff?r1=1.13&r2=1.14&f=u






More information about the Commits mailing list