Skip to content
  • Simon McVittie's avatar
    userdb: Make lookups return a const pointer · 6ee66ff7
    Simon McVittie authored
    
    
    This makes it more obvious that the returned pointer points to a
    struct owned by the userdb, which must not be freed or have its
    contents modified, and is only valid to dereference until the next
    modification to the userdb's underlying hash tables (which in practice
    means until the lock is released, because after that we have no
    guarantees about what might be going on in another thread).
    
    Signed-off-by: default avatarSimon McVittie <smcv@collabora.com>
    6ee66ff7