Problem: pointee types are unnecessarily non-const

Solution: add const where possible
This commit is contained in:
Simon Giesecke
2020-02-04 12:37:31 +01:00
parent db8f4fba21
commit 495fb00b7e
27 changed files with 67 additions and 58 deletions

View File

@@ -248,8 +248,8 @@ bool zmq::ipc_listener_t::filter (fd_t sock_)
!= options.ipc_pid_accept_filters.end ())
return true;
struct passwd *pw;
struct group *gr;
const struct passwd *pw;
const struct group *gr;
if (!(pw = getpwuid (cred.uid)))
return false;