Skip to content
Snippets Groups Projects
Forked from drm / msm
Source project has a limited visibility.
  • Jan Kara's avatar
    b3c8c980
    udf: Get rid of 0-length arrays · b3c8c980
    Jan Kara authored
    
    Declare variable length arrays using [] instead of the old-style
    declarations using arrays with 0 members. Also comment out entries in
    structures beyond the first variable length array (we still do keep them
    in comments as a reminder there are further entries in the structure
    behind the variable length array). Accessing such entries needs a
    careful offset math anyway so it is safer to not have them declared.
    
    Signed-off-by: default avatarJan Kara <jack@suse.cz>
    b3c8c980
    History
    udf: Get rid of 0-length arrays
    Jan Kara authored
    
    Declare variable length arrays using [] instead of the old-style
    declarations using arrays with 0 members. Also comment out entries in
    structures beyond the first variable length array (we still do keep them
    in comments as a reminder there are further entries in the structure
    behind the variable length array). Accessing such entries needs a
    careful offset math anyway so it is safer to not have them declared.
    
    Signed-off-by: default avatarJan Kara <jack@suse.cz>