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

git: <sys/param.h>: Fix a typo in the NELEM() definition.


From: Sascha Wildner <swildner@xxxxxxxxxxxxxxxxxxxxxxx>
Date: Fri, 20 May 2011 01:55:09 -0700 (PDT)

commit fa8f7852fe627febb1570324616a93454a1f4e33
Author: Sascha Wildner <saw@online.de>
Date:   Fri May 20 10:53:57 2011 +0200

    <sys/param.h>: Fix a typo in the NELEM() definition.
    
    This way it resolves to sizeof(foo[0]) instead of sizeof(foo)[0].
    
    Interestingly, both ways work and give the same results. But the former
    looks clearer.

Summary of changes:
 sys/sys/param.h |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/fa8f7852fe627febb1570324616a93454a1f4e33


-- 
DragonFly BSD source repository



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