git: kernel - Use do/while sequences to protect multi-line dsched macros

Matthew Dillon dillon at crater.dragonflybsd.org
Tue Mar 1 14:49:42 PST 2011


commit fd87e9e4b293977dbbe9a61805338f2190c4a9a9
Author: Matthew Dillon <dillon at apollo.backplane.com>
Date:   Tue Mar 1 14:47:38 2011 -0800

    kernel - Use do/while sequences to protect multi-line dsched macros
    
    * Use do/while sequences to protect multi-line dsched macros in case
      they are used in statement sequences without braces, as in
      'if (fubar) dsched_macro;', or similar circumstances.

Summary of changes:
 sys/sys/dsched.h |   70 +++++++++++++++++++++++++++++++++++++-----------------
 1 files changed, 48 insertions(+), 22 deletions(-)

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


-- 
DragonFly BSD source repository





More information about the Commits mailing list