Declare cant_listen() noreturn
Local analysis can now easily find out what's up. Before, inter- procedural analysis was required. The Clang Static Analyzer complained about a dereference of res that is actually fine.
This commit is contained in:
parent
9061ae7b9d
commit
43322c1cb7
1 changed files with 2 additions and 1 deletions
|
@ -51,7 +51,8 @@
|
||||||
#define AI_ADDRCONFIG 0
|
#define AI_ADDRCONFIG 0
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
static void cant_listen(char *, char *, const char *);
|
static void cant_listen(char *, char *, const char *)
|
||||||
|
ATTRIBUTE((noreturn));
|
||||||
|
|
||||||
int
|
int
|
||||||
tcp_listen(char *host, char *serv, size_t *addrlenp)
|
tcp_listen(char *host, char *serv, size_t *addrlenp)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue