gotadmin: get rid of got_sockaddr.[ch] usage
commit2edd250dd96801661e3eba82e6b3ee229563f38f
authorOmar Polo <op@omarpolo.com>
Wed, 15 Nov 2023 15:40:55 +0000 (15 15:40 +0000)
committerThomas Adam <thomas@xteddy.org>
Thu, 16 Nov 2023 00:48:47 +0000 (16 00:48 +0000)
tree475b3c1e9e397cdccf81f47ae78e3d46422e9997
parentac485591d020cd11cf0c53e192975f115a9dc40a
gotadmin: get rid of got_sockaddr.[ch] usage

It was added due to gotwebd weird structure sockaddr_storage handling.
Instead, save the size reported by getaddrinfo() and not reach into
the struct sockaddr_storage at all (except for extracting the port
number for diagnostics purposes.)

sockets_conf_new_socket_fcgi() gets an hardcoded ipproto to zero
(which is the only value it can get in practice, and keeps for the
moment the hardcoded SOCK_STREAM.  It'll be cleaned in a follow-up.

ok stsp@
gotwebd/gotwebd.h
gotwebd/parse.y
gotwebd/sockets.c
include/got_sockaddr.h [deleted file]
lib/sockaddr.c [deleted file]