Jelajahi Sumber

Renamed 'MHD_pipe_last_strerror_' -> 'MHD_itc_last_strerror_'

Evgeny Grin (Karlson2k) 9 tahun lalu
induk
melakukan
ec820265a0
2 mengubah file dengan 12 tambahan dan 12 penghapusan
  1. 4 4
      src/microhttpd/daemon.c
  2. 8 8
      src/microhttpd/mhd_itc.h

+ 4 - 4
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;
                 }

+ 8 - 8
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