gotwebd: clean up sockets_create_socket a bit
commit7d1d4b6ff2bc57110299da7fafbade01160fa0ef
authorOmar Polo <op@omarpolo.com>
Wed, 15 Nov 2023 16:34:13 +0000 (15 16:34 +0000)
committerThomas Adam <thomas@xteddy.org>
Thu, 16 Nov 2023 00:48:56 +0000 (16 00:48 +0000)
tree4414e4cc41e94d5a77fa73501d47978e25181e67
parent2edd250dd96801661e3eba82e6b3ee229563f38f
gotwebd: clean up sockets_create_socket a bit

Instead of hardcoding the flags, keep ai_{family,socktype,protocol}
from the getaddrinfo() call and apply them here.

ok stsp@
gotwebd/gotwebd.h
gotwebd/parse.y
gotwebd/sockets.c