The error message when mixing stream and dgram protocols in an
address speaks about sockets while it ought to speak about addresses,
let's fix this as in some contexts it can be a bit confusing.
}
if (ctrl_type == SOCK_STREAM && !(opts & PA_O_STREAM)) {
- memprintf(err, "stream-type socket not acceptable in '%s'\n", str);
+ memprintf(err, "stream-type address not acceptable in '%s'\n", str);
goto out;
}
else if (ctrl_type == SOCK_DGRAM && !(opts & PA_O_DGRAM)) {
- memprintf(err, "dgram-type socket not acceptable in '%s'\n", str);
+ memprintf(err, "dgram-type address not acceptable in '%s'\n", str);
goto out;
}