diff options
| author | Simon Rettberg | 2017-10-31 23:21:30 +0100 |
|---|---|---|
| committer | Simon Rettberg | 2017-10-31 23:21:30 +0100 |
| commit | 858fef5c8fc0c1b4c237dc65499756c3664492d8 (patch) | |
| tree | 9850f2f082f67f1258519d614e1edc5c6a5501d5 /src/shared/sockhelper.c | |
| parent | [SERVER] net.c: Refactoring and renaming (diff) | |
| download | dnbd3-858fef5c8fc0c1b4c237dc65499756c3664492d8.tar.gz dnbd3-858fef5c8fc0c1b4c237dc65499756c3664492d8.tar.xz dnbd3-858fef5c8fc0c1b4c237dc65499756c3664492d8.zip | |
[*] Mark logadd() as printf-style function, fix errors that it revealed
...there were quite a few format string errors as it turns out :/
Diffstat (limited to 'src/shared/sockhelper.c')
| -rw-r--r-- | src/shared/sockhelper.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/shared/sockhelper.c b/src/shared/sockhelper.c index 6fc7f46..1e34462 100644 --- a/src/shared/sockhelper.c +++ b/src/shared/sockhelper.c @@ -235,7 +235,7 @@ bool sock_listen(poll_list_t* list, char* bind_addr, uint16_t port) continue; } if ( listen( sock, 20 ) == -1 ) { - logadd( LOG_WARNING, "(Bind to %s): cannot listen(), errno=%d", errno ); + logadd( LOG_WARNING, "(Bind to %s): cannot listen(), errno=%d", bla, errno ); close( sock ); continue; } |
