Simplify UDP vs. TCP handling in service_announce_services
authorRafał Miłecki <rafal@milecki.pl>
Fri, 10 Feb 2017 21:55:00 +0000 (22:55 +0100)
committerRafał Miłecki <rafal@milecki.pl>
Fri, 10 Feb 2017 21:55:00 +0000 (22:55 +0100)
commit9879d5fcafed84a912baa8e2e2d3e73df1a9236d
tree1a6ee9ccc56d91f035c309c308523583d1dce856
parent3d85c9cd70ec502ac134e218504f8ba7795231f4
Simplify UDP vs. TCP handling in service_announce_services

Out of 3 calls of this function only one doesn't have TCP vs. UDP
hardcoded. It's easier to move string check to that place and make this
function take "int tcp" argument instead.

Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
dns.c
service.c
service.h