Commit 1a5fd716 authored by Pavel Tvrdík's avatar Pavel Tvrdík

Socktest: testing unrecognized socket type

It fixes warnings at FreeBSD (clang).
parent 9d8964e0
......@@ -51,6 +51,8 @@ main(int argc, char **argv)
proto = IPPROTO_UDP;
port = htons(cf_port);
}
else
ERR("unrecognized socket type");
fd = socket(PF_IP, type, proto);
if (fd < 0)
......
......@@ -49,6 +49,8 @@ main(int argc, char **argv)
proto = IPPROTO_UDP;
port = htons(cf_port);
}
else
ERR("unrecognized socket type");
fd = socket(PF_IP, type, proto);
if (fd < 0)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment