]> git.tuebingen.mpg.de Git - paraslash.git/commit - dccp_send.c
send_common: Improve error diagnostics of generic_com_on().
authorAndre Noll <maan@tuebingen.mpg.de>
Sat, 17 Mar 2018 01:10:55 +0000 (02:10 +0100)
committerAndre Noll <maan@tuebingen.mpg.de>
Tue, 17 Apr 2018 07:29:57 +0000 (09:29 +0200)
commit2b004fc5dc0c652c6eb4daf84e5875f2c852ca72
treed009d234a20202f9e784bf3ad8b11809dd0a40b2
parentac9f8fc0b4a20b3ec1d205029ef61321174d15b6
send_common: Improve error diagnostics of generic_com_on().

Currently the function returns an error code but does not log a message
on errors. The callers, http_send_init() and dccp_send_init(), print
the strerror text with no indication that it is was generic_com_on()
which caused the error.

This commit moves the log messages from the callers to generic_com_on()
and changes the return type of generic_com_on() to void because both
callers now ignore the return value. The new log messages include a
text which tells the user what went wrong.
dccp_send.c
http_send.c
send.h
send_common.c