openssh-portable icon indicating copy to clipboard operation
openssh-portable copied to clipboard

Remove unused <netinet/in_systm.h> and <resolv.h> inclusions.

Open sortie opened this issue 1 year ago • 1 comments

netinet/in_systm.h defines n_short, n_long, and n_time which are not used anywhere in openssh.

resolv.h is not used in the affected files.

sortie avatar Nov 02 '24 21:11 sortie

resolv.h is needed for base64 functions on some platforms

hostfile.c:97:8: error: call to undeclared function '__b64_pton'; ISO C99 and later do not support implicit function declarations [-Werror,-Wimplicit-function-declaration]
        ret = __b64_pton(b64salt, salt, salt_len);

djmdjm avatar Dec 03 '24 08:12 djmdjm