DragonFly BSD
DragonFly commits List (threaded) for 2004-07
[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]

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


From: Matthew Dillon <dillon@xxxxxxxxxxxxxxxxxxxx>
Date: Mon, 26 Jul 2004 13:37:42 -0700 (PDT)

    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@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




[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]