another concession to flexelint

I would have preferred avoiding the duplication of the suckaddr member
types, but flexelint spits "Warning 550: Symbol 'sua' (line 229) not
accessed"
parent 95162cf4
...@@ -226,13 +226,11 @@ VSA_GetPtr(const struct suckaddr *sua, const unsigned char ** dst) ...@@ -226,13 +226,11 @@ VSA_GetPtr(const struct suckaddr *sua, const unsigned char ** dst)
static inline static inline
socklen_t sua_len(const struct sockaddr *sa) socklen_t sua_len(const struct sockaddr *sa)
{ {
struct suckaddr *sua;
switch (sa->sa_family) { switch (sa->sa_family) {
case PF_INET: case PF_INET:
return (sizeof sua->sa4); return (sizeof(struct sockaddr_in));
case PF_INET6: case PF_INET6:
return (sizeof sua->sa6); return (sizeof(struct sockaddr_in6));
default: default:
return (0); return (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