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:
Markus Armbruster 2010-01-15 20:20:36 +01:00
parent 9061ae7b9d
commit 43322c1cb7

View file

@ -51,7 +51,8 @@
#define AI_ADDRCONFIG 0
#endif
static void cant_listen(char *, char *, const char *);
static void cant_listen(char *, char *, const char *)
ATTRIBUTE((noreturn));
int
tcp_listen(char *host, char *serv, size_t *addrlenp)