mirror of
https://github.com/servalproject/serval-dna.git
synced 2024-12-22 06:27:51 +00:00
got rid of vestigal confValueGet() call in alternate code path.
This commit is contained in:
parent
d21bb8338f
commit
e808fb0872
@ -62,8 +62,8 @@ int overlay_mdp_setup_sockets()
|
||||
/* XXX The 100 should be replaced with the actual maximum allowed.
|
||||
Apparently POSIX requires it to be at least 100, but I would still feel
|
||||
more comfortable with using the appropriate constant. */
|
||||
snprintf(&name.sun_path[1],100,
|
||||
confValueGet("mdp.socket",DEFAULT_MDP_SOCKET_NAME));
|
||||
if (!form_serval_instance_path(&name.sun_path[0], sizeof name.sun_path, "mdp.socket"))
|
||||
return WHY("Cannot construct name of unix domain socket.");
|
||||
len = 1+strlen(&name.sun_path[1]) + sizeof(name.sun_family);
|
||||
|
||||
mdp_abstract.poll.fd = socket(AF_UNIX, SOCK_DGRAM, 0);
|
||||
|
Loading…
Reference in New Issue
Block a user