Skip to content
  • Thomas Haller's avatar
    libnm: mark NMVariantAttributeSpec pointers as const · fde9250c
    Thomas Haller authored and Lubomir Rintel's avatar Lubomir Rintel committed
    This actually allows the compiler/linker to mark the memory as read-only and any
    modification will cause a segmentation fault.
    
    I would also think that it allows the compiler to put the structure directly
    beside the outer constant array (in which this pointer is embedded). That is good
    locality-wise.
    
    (cherry picked from commit 4e3955e6)
    fde9250c