diff options
| author | Florian Westphal <fw@strlen.de> | 2007-12-13 01:05:01 +0000 |
|---|---|---|
| committer | Florian Westphal <fw@strlen.de> | 2007-12-13 01:05:01 +0000 |
| commit | 4715ccf9ca7509795295a5d2ac5aab5d9998f06a (patch) | |
| tree | 9c2bf9ef7c31e2f616bc2e69ca5a61039f9c8ac7 | |
| parent | 8974e90552baa2ea831b6720a061a74127edcca0 (diff) | |
| download | ngircd-4715ccf9ca7509795295a5d2ac5aab5d9998f06a.tar.gz ngircd-4715ccf9ca7509795295a5d2ac5aab5d9998f06a.zip | |
Fix format string in error path: didn't print strerror(errno)
| -rw-r--r-- | src/ngircd/conn.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/ngircd/conn.c b/src/ngircd/conn.c index 46a6ec29..7cd7a636 100644 --- a/src/ngircd/conn.c +++ b/src/ngircd/conn.c @@ -17,7 +17,7 @@ #include "portab.h" #include "io.h" -static char UNUSED id[] = "$Id: conn.c,v 1.218 2007/12/07 21:19:01 fw Exp $"; +static char UNUSED id[] = "$Id: conn.c,v 1.219 2007/12/13 01:05:01 fw Exp $"; #include "imp.h" #include <assert.h> @@ -1394,7 +1394,7 @@ New_Server( int Server , struct in_addr *dest) InitSinaddr(&local_addr, 0); local_addr.sin_addr = Conf_Server[Server].bind_addr; if (bind(new_sock, (struct sockaddr *)&local_addr, (socklen_t)sizeof(local_addr))) - Log(LOG_WARNING, "Can't bind socket to %s!", Conf_ListenAddress, strerror( errno )); + Log(LOG_WARNING, "Can't bind socket to %s: %s!", Conf_ListenAddress, strerror( errno )); res = connect(new_sock, (struct sockaddr *)&new_addr, (socklen_t)sizeof(new_addr)); |