libmicrohttpd

HTTP/1.x server C library (MHD 1.x, stable)
Log | Files | Refs | Submodules | README | LICENSE

commit ec820265a0b7f40fda6be51fbd7b8b0264aab4e9
parent fbf5dfc5f4631519b9ea88a033e85418d0fe5e45
Author: Evgeny Grin (Karlson2k) <k2k@narod.ru>
Date:   Tue, 11 Oct 2016 15:21:07 +0000

Renamed 'MHD_pipe_last_strerror_' -> 'MHD_itc_last_strerror_'

Diffstat:
Msrc/microhttpd/daemon.c | 8++++----
Msrc/microhttpd/mhd_itc.h | 16++++++++--------
2 files changed, 12 insertions(+), 12 deletions(-)

diff --git a/src/microhttpd/daemon.c b/src/microhttpd/daemon.c @@ -4467,7 +4467,7 @@ MHD_start_daemon_va (unsigned int flags, #ifdef HAVE_MESSAGES MHD_DLOG (daemon, _("Failed to create control pipe: %s\n"), - MHD_pipe_last_strerror_ ()); + MHD_itc_last_strerror_ ()); #endif free (daemon); return NULL; @@ -4477,7 +4477,7 @@ MHD_start_daemon_va (unsigned int flags, #ifdef HAVE_MESSAGES MHD_DLOG (daemon, _("Failed to make read side of inter-thread control channel non-blocking: %s\n"), - MHD_pipe_last_strerror_ ()); + MHD_itc_last_strerror_ ()); #endif MHD_pipe_close_ (daemon->itc); free (daemon); @@ -4989,7 +4989,7 @@ MHD_start_daemon_va (unsigned int flags, #ifdef HAVE_MESSAGES MHD_DLOG (daemon, _("Failed to create worker control pipe: %s\n"), - MHD_pipe_last_strerror_() ); + MHD_itc_last_strerror_() ); #endif goto thread_failed; } @@ -4998,7 +4998,7 @@ MHD_start_daemon_va (unsigned int flags, #ifdef HAVE_MESSAGES MHD_DLOG (daemon, _("Failed to make read side of worker inter-thread control channel non-blocking: %s\n"), - MHD_pipe_last_strerror_ ()); + MHD_itc_last_strerror_ ()); #endif goto thread_failed; } diff --git a/src/microhttpd/mhd_itc.h b/src/microhttpd/mhd_itc.h @@ -61,10 +61,10 @@ typedef int MHD_itc_; */ #define MHD_itc_init_(itc) (-1 != ((itc) = eventfd (0, EFD_CLOEXEC | EFD_NONBLOCK))) -/*** - * Get description string of last errno for pipe operations. +/** + * Get description string of last errno for itc operations. */ -#define MHD_pipe_last_strerror_() strerror(errno) +#define MHD_itc_last_strerror_() strerror(errno) /** * write data to real pipe @@ -142,10 +142,10 @@ typedef struct MHD_Itc MHD_itc_; */ #define MHD_itc_init_(itc) (!pipe((itc).fd)) -/*** - * Get description string of last errno for pipe operations. +/** + * Get description string of last errno for itc operations. */ -#define MHD_pipe_last_strerror_() strerror(errno) +#define MHD_itc_last_strerror_() strerror(errno) /** * write data to real pipe @@ -222,9 +222,9 @@ typedef struct MHD_Itc MHD_itc_; #define MHD_itc_init_(itc) MHD_socket_pair_((itc).sk) /** - * Get description string of last pipe error + * Get description string of last error for itc operations. */ -#define MHD_pipe_last_strerror_() MHD_socket_last_strerr_() +#define MHD_itc_last_strerror_() MHD_socket_last_strerr_() /** * Write data to emulated pipe