mirror of
https://github.com/zeromq/libzmq.git
synced 2025-11-08 06:42:57 +01:00
Problem: pointee types are unnecessarily non-const
Solution: add const where possible
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user