diff options
Diffstat (limited to 'src/microhttpd')
-rw-r--r-- | src/microhttpd/test_client_put_stop.c | 12 | ||||
-rw-r--r-- | src/microhttpd/test_daemon.c | 4 | ||||
-rw-r--r-- | src/microhttpd/test_options.c | 4 | ||||
-rw-r--r-- | src/microhttpd/test_start_stop.c | 4 | ||||
-rw-r--r-- | src/microhttpd/test_upgrade.c | 42 | ||||
-rw-r--r-- | src/microhttpd/test_upgrade_large.c | 42 |
6 files changed, 54 insertions, 54 deletions
diff --git a/src/microhttpd/test_client_put_stop.c b/src/microhttpd/test_client_put_stop.c index c1707c5c..6c641e6f 100644 --- a/src/microhttpd/test_client_put_stop.c +++ b/src/microhttpd/test_client_put_stop.c | |||
@@ -1052,12 +1052,12 @@ struct term_notif_cb_param | |||
1052 | static void | 1052 | static void |
1053 | term_cb (void *cls, | 1053 | term_cb (void *cls, |
1054 | struct MHD_Connection *c, | 1054 | struct MHD_Connection *c, |
1055 | void **con_cls, | 1055 | void **req_cls, |
1056 | enum MHD_RequestTerminationCode term_code) | 1056 | enum MHD_RequestTerminationCode term_code) |
1057 | { | 1057 | { |
1058 | struct term_notif_cb_param *param = (struct term_notif_cb_param *) cls; | 1058 | struct term_notif_cb_param *param = (struct term_notif_cb_param *) cls; |
1059 | if (NULL == con_cls) | 1059 | if (NULL == req_cls) |
1060 | mhdErrorExitDesc ("'con_cls' pointer is NULL"); | 1060 | mhdErrorExitDesc ("'req_cls' pointer is NULL"); |
1061 | if (NULL == c) | 1061 | if (NULL == c) |
1062 | mhdErrorExitDesc ("'connection' pointer is NULL"); | 1062 | mhdErrorExitDesc ("'connection' pointer is NULL"); |
1063 | if (NULL == param) | 1063 | if (NULL == param) |
@@ -1220,7 +1220,7 @@ ahcCheck (void *cls, | |||
1220 | const char *method, | 1220 | const char *method, |
1221 | const char *version, | 1221 | const char *version, |
1222 | const char *upload_data, size_t *upload_data_size, | 1222 | const char *upload_data, size_t *upload_data_size, |
1223 | void **con_cls) | 1223 | void **req_cls) |
1224 | { | 1224 | { |
1225 | static int marker; | 1225 | static int marker; |
1226 | enum MHD_Result ret; | 1226 | enum MHD_Result ret; |
@@ -1273,13 +1273,13 @@ ahcCheck (void *cls, | |||
1273 | *upload_data_size = 0; | 1273 | *upload_data_size = 0; |
1274 | } | 1274 | } |
1275 | 1275 | ||
1276 | if (&marker != *con_cls) | 1276 | if (&marker != *req_cls) |
1277 | { | 1277 | { |
1278 | /* The first call of the callback for this connection */ | 1278 | /* The first call of the callback for this connection */ |
1279 | mhd_assert (NULL == upload_data); | 1279 | mhd_assert (NULL == upload_data); |
1280 | param->req_body_uploaded = 0; | 1280 | param->req_body_uploaded = 0; |
1281 | 1281 | ||
1282 | *con_cls = ▮ | 1282 | *req_cls = ▮ |
1283 | return MHD_YES; | 1283 | return MHD_YES; |
1284 | } | 1284 | } |
1285 | 1285 | ||
diff --git a/src/microhttpd/test_daemon.c b/src/microhttpd/test_daemon.c index 14a77832..7a55ff65 100644 --- a/src/microhttpd/test_daemon.c +++ b/src/microhttpd/test_daemon.c | |||
@@ -81,11 +81,11 @@ ahc_nothing (void *cls, | |||
81 | const char *method, | 81 | const char *method, |
82 | const char *version, | 82 | const char *version, |
83 | const char *upload_data, size_t *upload_data_size, | 83 | const char *upload_data, size_t *upload_data_size, |
84 | void **unused) | 84 | void **req_cls) |
85 | { | 85 | { |
86 | (void) cls; (void) connection; (void) url; /* Unused. Silent compiler warning. */ | 86 | (void) cls; (void) connection; (void) url; /* Unused. Silent compiler warning. */ |
87 | (void) method; (void) version; (void) upload_data; /* Unused. Silent compiler warning. */ | 87 | (void) method; (void) version; (void) upload_data; /* Unused. Silent compiler warning. */ |
88 | (void) upload_data_size; (void) unused; /* Unused. Silent compiler warning. */ | 88 | (void) upload_data_size; (void) req_cls; /* Unused. Silent compiler warning. */ |
89 | 89 | ||
90 | return MHD_NO; | 90 | return MHD_NO; |
91 | } | 91 | } |
diff --git a/src/microhttpd/test_options.c b/src/microhttpd/test_options.c index 575b6a2b..b79ddb01 100644 --- a/src/microhttpd/test_options.c +++ b/src/microhttpd/test_options.c | |||
@@ -42,7 +42,7 @@ ahc_echo (void *cls, | |||
42 | const char *method, | 42 | const char *method, |
43 | const char *version, | 43 | const char *version, |
44 | const char *upload_data, size_t *upload_data_size, | 44 | const char *upload_data, size_t *upload_data_size, |
45 | void **unused) | 45 | void **req_cls) |
46 | { | 46 | { |
47 | (void) cls; | 47 | (void) cls; |
48 | (void) connection; | 48 | (void) connection; |
@@ -51,7 +51,7 @@ ahc_echo (void *cls, | |||
51 | (void) version; | 51 | (void) version; |
52 | (void) upload_data; | 52 | (void) upload_data; |
53 | (void) upload_data_size; | 53 | (void) upload_data_size; |
54 | (void) unused; | 54 | (void) req_cls; |
55 | 55 | ||
56 | return 0; | 56 | return 0; |
57 | } | 57 | } |
diff --git a/src/microhttpd/test_start_stop.c b/src/microhttpd/test_start_stop.c index db2d0684..34372090 100644 --- a/src/microhttpd/test_start_stop.c +++ b/src/microhttpd/test_start_stop.c | |||
@@ -42,11 +42,11 @@ ahc_echo (void *cls, | |||
42 | const char *method, | 42 | const char *method, |
43 | const char *version, | 43 | const char *version, |
44 | const char *upload_data, size_t *upload_data_size, | 44 | const char *upload_data, size_t *upload_data_size, |
45 | void **unused) | 45 | void **req_cls) |
46 | { | 46 | { |
47 | (void) cls; (void) connection; (void) url; /* Unused. Silent compiler warning. */ | 47 | (void) cls; (void) connection; (void) url; /* Unused. Silent compiler warning. */ |
48 | (void) method; (void) version; (void) upload_data; /* Unused. Silent compiler warning. */ | 48 | (void) method; (void) version; (void) upload_data; /* Unused. Silent compiler warning. */ |
49 | (void) upload_data_size; (void) unused; /* Unused. Silent compiler warning. */ | 49 | (void) upload_data_size; (void) req_cls; /* Unused. Silent compiler warning. */ |
50 | 50 | ||
51 | return MHD_NO; | 51 | return MHD_NO; |
52 | } | 52 | } |
diff --git a/src/microhttpd/test_upgrade.c b/src/microhttpd/test_upgrade.c index fa91f7dc..0bbb08e9 100644 --- a/src/microhttpd/test_upgrade.c +++ b/src/microhttpd/test_upgrade.c | |||
@@ -628,14 +628,14 @@ term_reason_str (enum MHD_RequestTerminationCode term_code) | |||
628 | * | 628 | * |
629 | * @param cls client-defined closure | 629 | * @param cls client-defined closure |
630 | * @param connection connection handle | 630 | * @param connection connection handle |
631 | * @param con_cls value as set by the last call to | 631 | * @param req_cls value as set by the last call to |
632 | * the #MHD_AccessHandlerCallback | 632 | * the #MHD_AccessHandlerCallback |
633 | * @param toe reason for request termination | 633 | * @param toe reason for request termination |
634 | */ | 634 | */ |
635 | static void | 635 | static void |
636 | notify_completed_cb (void *cls, | 636 | notify_completed_cb (void *cls, |
637 | struct MHD_Connection *connection, | 637 | struct MHD_Connection *connection, |
638 | void **con_cls, | 638 | void **req_cls, |
639 | enum MHD_RequestTerminationCode toe) | 639 | enum MHD_RequestTerminationCode toe) |
640 | { | 640 | { |
641 | (void) cls; | 641 | (void) cls; |
@@ -647,15 +647,15 @@ notify_completed_cb (void *cls, | |||
647 | (toe != MHD_REQUEST_TERMINATED_CLIENT_ABORT) && | 647 | (toe != MHD_REQUEST_TERMINATED_CLIENT_ABORT) && |
648 | (toe != MHD_REQUEST_TERMINATED_DAEMON_SHUTDOWN) ) | 648 | (toe != MHD_REQUEST_TERMINATED_DAEMON_SHUTDOWN) ) |
649 | mhdErrorExitDesc ("notify_completed_cb() called with wrong code"); | 649 | mhdErrorExitDesc ("notify_completed_cb() called with wrong code"); |
650 | if (NULL == con_cls) | 650 | if (NULL == req_cls) |
651 | mhdErrorExitDesc ("'con_cls' parameter is NULL"); | 651 | mhdErrorExitDesc ("'req_cls' parameter is NULL"); |
652 | if (NULL == *con_cls) | 652 | if (NULL == *req_cls) |
653 | mhdErrorExitDesc ("'*con_cls' pointer is NULL"); | 653 | mhdErrorExitDesc ("'*req_cls' pointer is NULL"); |
654 | if (! pthread_equal (**((pthread_t **) con_cls), | 654 | if (! pthread_equal (**((pthread_t **) req_cls), |
655 | pthread_self ())) | 655 | pthread_self ())) |
656 | mhdErrorExitDesc ("notify_completed_cb() is called in wrong thread"); | 656 | mhdErrorExitDesc ("notify_completed_cb() is called in wrong thread"); |
657 | free (*con_cls); | 657 | free (*req_cls); |
658 | *con_cls = NULL; | 658 | *req_cls = NULL; |
659 | } | 659 | } |
660 | 660 | ||
661 | 661 | ||
@@ -700,7 +700,7 @@ log_cb (void *cls, | |||
700 | * @param socket_context socket-specific pointer where the | 700 | * @param socket_context socket-specific pointer where the |
701 | * client can associate some state specific | 701 | * client can associate some state specific |
702 | * to the TCP connection; note that this is | 702 | * to the TCP connection; note that this is |
703 | * different from the "con_cls" which is per | 703 | * different from the "req_cls" which is per |
704 | * HTTP request. The client can initialize | 704 | * HTTP request. The client can initialize |
705 | * during #MHD_CONNECTION_NOTIFY_STARTED and | 705 | * during #MHD_CONNECTION_NOTIFY_STARTED and |
706 | * cleanup during #MHD_CONNECTION_NOTIFY_CLOSED | 706 | * cleanup during #MHD_CONNECTION_NOTIFY_CLOSED |
@@ -956,7 +956,7 @@ run_usock_client (void *cls) | |||
956 | * @param connection original HTTP connection handle, | 956 | * @param connection original HTTP connection handle, |
957 | * giving the function a last chance | 957 | * giving the function a last chance |
958 | * to inspect the original HTTP request | 958 | * to inspect the original HTTP request |
959 | * @param con_cls last value left in `con_cls` of the `MHD_AccessHandlerCallback` | 959 | * @param req_cls last value left in `req_cls` of the `MHD_AccessHandlerCallback` |
960 | * @param extra_in if we happened to have read bytes after the | 960 | * @param extra_in if we happened to have read bytes after the |
961 | * HTTP header already (because the client sent | 961 | * HTTP header already (because the client sent |
962 | * more than the HTTP header of the request before | 962 | * more than the HTTP header of the request before |
@@ -981,7 +981,7 @@ run_usock_client (void *cls) | |||
981 | static void | 981 | static void |
982 | upgrade_cb (void *cls, | 982 | upgrade_cb (void *cls, |
983 | struct MHD_Connection *connection, | 983 | struct MHD_Connection *connection, |
984 | void *con_cls, | 984 | void *req_cls, |
985 | const char *extra_in, | 985 | const char *extra_in, |
986 | size_t extra_in_size, | 986 | size_t extra_in_size, |
987 | MHD_socket sock, | 987 | MHD_socket sock, |
@@ -989,7 +989,7 @@ upgrade_cb (void *cls, | |||
989 | { | 989 | { |
990 | (void) cls; | 990 | (void) cls; |
991 | (void) connection; | 991 | (void) connection; |
992 | (void) con_cls; | 992 | (void) req_cls; |
993 | (void) extra_in; /* Unused. Silent compiler warning. */ | 993 | (void) extra_in; /* Unused. Silent compiler warning. */ |
994 | 994 | ||
995 | usock = wr_create_from_plain_sckt (sock); | 995 | usock = wr_create_from_plain_sckt (sock); |
@@ -1028,7 +1028,7 @@ upgrade_cb (void *cls, | |||
1028 | * @param upload_data_size set initially to the size of the | 1028 | * @param upload_data_size set initially to the size of the |
1029 | * @a upload_data provided; the method must update this | 1029 | * @a upload_data provided; the method must update this |
1030 | * value to the number of bytes NOT processed; | 1030 | * value to the number of bytes NOT processed; |
1031 | * @param con_cls pointer that the callback can set to some | 1031 | * @param req_cls pointer that the callback can set to some |
1032 | * address and that will be preserved by MHD for future | 1032 | * address and that will be preserved by MHD for future |
1033 | * calls for this request; since the access handler may | 1033 | * calls for this request; since the access handler may |
1034 | * be called many times (i.e., for a PUT/POST operation | 1034 | * be called many times (i.e., for a PUT/POST operation |
@@ -1037,7 +1037,7 @@ upgrade_cb (void *cls, | |||
1037 | * If necessary, this state can be cleaned up in the | 1037 | * If necessary, this state can be cleaned up in the |
1038 | * global #MHD_RequestCompletedCallback (which | 1038 | * global #MHD_RequestCompletedCallback (which |
1039 | * can be set with the #MHD_OPTION_NOTIFY_COMPLETED). | 1039 | * can be set with the #MHD_OPTION_NOTIFY_COMPLETED). |
1040 | * Initially, `*con_cls` will be NULL. | 1040 | * Initially, `*req_cls` will be NULL. |
1041 | * @return #MHD_YES if the connection was handled successfully, | 1041 | * @return #MHD_YES if the connection was handled successfully, |
1042 | * #MHD_NO if the socket must be closed due to a serious | 1042 | * #MHD_NO if the socket must be closed due to a serious |
1043 | * error while handling the request | 1043 | * error while handling the request |
@@ -1050,7 +1050,7 @@ ahc_upgrade (void *cls, | |||
1050 | const char *version, | 1050 | const char *version, |
1051 | const char *upload_data, | 1051 | const char *upload_data, |
1052 | size_t *upload_data_size, | 1052 | size_t *upload_data_size, |
1053 | void **con_cls) | 1053 | void **req_cls) |
1054 | { | 1054 | { |
1055 | struct MHD_Response *resp; | 1055 | struct MHD_Response *resp; |
1056 | (void) cls; | 1056 | (void) cls; |
@@ -1060,11 +1060,11 @@ ahc_upgrade (void *cls, | |||
1060 | (void) upload_data; | 1060 | (void) upload_data; |
1061 | (void) upload_data_size; /* Unused. Silent compiler warning. */ | 1061 | (void) upload_data_size; /* Unused. Silent compiler warning. */ |
1062 | 1062 | ||
1063 | if (NULL == con_cls) | 1063 | if (NULL == req_cls) |
1064 | mhdErrorExitDesc ("'con_cls' is NULL"); | 1064 | mhdErrorExitDesc ("'req_cls' is NULL"); |
1065 | if (NULL == *con_cls) | 1065 | if (NULL == *req_cls) |
1066 | mhdErrorExitDesc ("'*con_cls' value is NULL"); | 1066 | mhdErrorExitDesc ("'*req_cls' value is NULL"); |
1067 | if (! pthread_equal (**((pthread_t **) con_cls), pthread_self ())) | 1067 | if (! pthread_equal (**((pthread_t **) req_cls), pthread_self ())) |
1068 | mhdErrorExitDesc ("ahc_upgrade() is called in wrong thread"); | 1068 | mhdErrorExitDesc ("ahc_upgrade() is called in wrong thread"); |
1069 | resp = MHD_create_response_for_upgrade (&upgrade_cb, | 1069 | resp = MHD_create_response_for_upgrade (&upgrade_cb, |
1070 | NULL); | 1070 | NULL); |
diff --git a/src/microhttpd/test_upgrade_large.c b/src/microhttpd/test_upgrade_large.c index 3ccb1985..1928080d 100644 --- a/src/microhttpd/test_upgrade_large.c +++ b/src/microhttpd/test_upgrade_large.c | |||
@@ -796,14 +796,14 @@ term_reason_str (enum MHD_RequestTerminationCode term_code) | |||
796 | * | 796 | * |
797 | * @param cls client-defined closure | 797 | * @param cls client-defined closure |
798 | * @param connection connection handle | 798 | * @param connection connection handle |
799 | * @param con_cls value as set by the last call to | 799 | * @param req_cls value as set by the last call to |
800 | * the #MHD_AccessHandlerCallback | 800 | * the #MHD_AccessHandlerCallback |
801 | * @param toe reason for request termination | 801 | * @param toe reason for request termination |
802 | */ | 802 | */ |
803 | static void | 803 | static void |
804 | notify_completed_cb (void *cls, | 804 | notify_completed_cb (void *cls, |
805 | struct MHD_Connection *connection, | 805 | struct MHD_Connection *connection, |
806 | void **con_cls, | 806 | void **req_cls, |
807 | enum MHD_RequestTerminationCode toe) | 807 | enum MHD_RequestTerminationCode toe) |
808 | { | 808 | { |
809 | (void) cls; | 809 | (void) cls; |
@@ -815,15 +815,15 @@ notify_completed_cb (void *cls, | |||
815 | (toe != MHD_REQUEST_TERMINATED_CLIENT_ABORT) && | 815 | (toe != MHD_REQUEST_TERMINATED_CLIENT_ABORT) && |
816 | (toe != MHD_REQUEST_TERMINATED_DAEMON_SHUTDOWN) ) | 816 | (toe != MHD_REQUEST_TERMINATED_DAEMON_SHUTDOWN) ) |
817 | mhdErrorExitDesc ("notify_completed_cb() called with wrong code"); | 817 | mhdErrorExitDesc ("notify_completed_cb() called with wrong code"); |
818 | if (NULL == con_cls) | 818 | if (NULL == req_cls) |
819 | mhdErrorExitDesc ("'con_cls' parameter is NULL"); | 819 | mhdErrorExitDesc ("'req_cls' parameter is NULL"); |
820 | if (NULL == *con_cls) | 820 | if (NULL == *req_cls) |
821 | mhdErrorExitDesc ("'*con_cls' pointer is NULL"); | 821 | mhdErrorExitDesc ("'*req_cls' pointer is NULL"); |
822 | if (! pthread_equal (**((pthread_t **) con_cls), | 822 | if (! pthread_equal (**((pthread_t **) req_cls), |
823 | pthread_self ())) | 823 | pthread_self ())) |
824 | mhdErrorExitDesc ("notify_completed_cb() is called in wrong thread"); | 824 | mhdErrorExitDesc ("notify_completed_cb() is called in wrong thread"); |
825 | free (*con_cls); | 825 | free (*req_cls); |
826 | *con_cls = NULL; | 826 | *req_cls = NULL; |
827 | } | 827 | } |
828 | 828 | ||
829 | 829 | ||
@@ -868,7 +868,7 @@ log_cb (void *cls, | |||
868 | * @param socket_context socket-specific pointer where the | 868 | * @param socket_context socket-specific pointer where the |
869 | * client can associate some state specific | 869 | * client can associate some state specific |
870 | * to the TCP connection; note that this is | 870 | * to the TCP connection; note that this is |
871 | * different from the "con_cls" which is per | 871 | * different from the "req_cls" which is per |
872 | * HTTP request. The client can initialize | 872 | * HTTP request. The client can initialize |
873 | * during #MHD_CONNECTION_NOTIFY_STARTED and | 873 | * during #MHD_CONNECTION_NOTIFY_STARTED and |
874 | * cleanup during #MHD_CONNECTION_NOTIFY_CLOSED | 874 | * cleanup during #MHD_CONNECTION_NOTIFY_CLOSED |
@@ -1139,7 +1139,7 @@ run_usock_client (void *cls) | |||
1139 | * @param connection original HTTP connection handle, | 1139 | * @param connection original HTTP connection handle, |
1140 | * giving the function a last chance | 1140 | * giving the function a last chance |
1141 | * to inspect the original HTTP request | 1141 | * to inspect the original HTTP request |
1142 | * @param con_cls last value left in `con_cls` of the `MHD_AccessHandlerCallback` | 1142 | * @param req_cls last value left in `req_cls` of the `MHD_AccessHandlerCallback` |
1143 | * @param extra_in if we happened to have read bytes after the | 1143 | * @param extra_in if we happened to have read bytes after the |
1144 | * HTTP header already (because the client sent | 1144 | * HTTP header already (because the client sent |
1145 | * more than the HTTP header of the request before | 1145 | * more than the HTTP header of the request before |
@@ -1164,7 +1164,7 @@ run_usock_client (void *cls) | |||
1164 | static void | 1164 | static void |
1165 | upgrade_cb (void *cls, | 1165 | upgrade_cb (void *cls, |
1166 | struct MHD_Connection *connection, | 1166 | struct MHD_Connection *connection, |
1167 | void *con_cls, | 1167 | void *req_cls, |
1168 | const char *extra_in, | 1168 | const char *extra_in, |
1169 | size_t extra_in_size, | 1169 | size_t extra_in_size, |
1170 | MHD_socket sock, | 1170 | MHD_socket sock, |
@@ -1172,7 +1172,7 @@ upgrade_cb (void *cls, | |||
1172 | { | 1172 | { |
1173 | (void) cls; | 1173 | (void) cls; |
1174 | (void) connection; | 1174 | (void) connection; |
1175 | (void) con_cls; | 1175 | (void) req_cls; |
1176 | (void) extra_in; /* Unused. Silent compiler warning. */ | 1176 | (void) extra_in; /* Unused. Silent compiler warning. */ |
1177 | 1177 | ||
1178 | usock = wr_create_from_plain_sckt (sock); | 1178 | usock = wr_create_from_plain_sckt (sock); |
@@ -1211,7 +1211,7 @@ upgrade_cb (void *cls, | |||
1211 | * @param upload_data_size set initially to the size of the | 1211 | * @param upload_data_size set initially to the size of the |
1212 | * @a upload_data provided; the method must update this | 1212 | * @a upload_data provided; the method must update this |
1213 | * value to the number of bytes NOT processed; | 1213 | * value to the number of bytes NOT processed; |
1214 | * @param con_cls pointer that the callback can set to some | 1214 | * @param req_cls pointer that the callback can set to some |
1215 | * address and that will be preserved by MHD for future | 1215 | * address and that will be preserved by MHD for future |
1216 | * calls for this request; since the access handler may | 1216 | * calls for this request; since the access handler may |
1217 | * be called many times (i.e., for a PUT/POST operation | 1217 | * be called many times (i.e., for a PUT/POST operation |
@@ -1220,7 +1220,7 @@ upgrade_cb (void *cls, | |||
1220 | * If necessary, this state can be cleaned up in the | 1220 | * If necessary, this state can be cleaned up in the |
1221 | * global #MHD_RequestCompletedCallback (which | 1221 | * global #MHD_RequestCompletedCallback (which |
1222 | * can be set with the #MHD_OPTION_NOTIFY_COMPLETED). | 1222 | * can be set with the #MHD_OPTION_NOTIFY_COMPLETED). |
1223 | * Initially, `*con_cls` will be NULL. | 1223 | * Initially, `*req_cls` will be NULL. |
1224 | * @return #MHD_YES if the connection was handled successfully, | 1224 | * @return #MHD_YES if the connection was handled successfully, |
1225 | * #MHD_NO if the socket must be closed due to a serious | 1225 | * #MHD_NO if the socket must be closed due to a serious |
1226 | * error while handling the request | 1226 | * error while handling the request |
@@ -1233,7 +1233,7 @@ ahc_upgrade (void *cls, | |||
1233 | const char *version, | 1233 | const char *version, |
1234 | const char *upload_data, | 1234 | const char *upload_data, |
1235 | size_t *upload_data_size, | 1235 | size_t *upload_data_size, |
1236 | void **con_cls) | 1236 | void **req_cls) |
1237 | { | 1237 | { |
1238 | struct MHD_Response *resp; | 1238 | struct MHD_Response *resp; |
1239 | (void) cls; | 1239 | (void) cls; |
@@ -1243,11 +1243,11 @@ ahc_upgrade (void *cls, | |||
1243 | (void) upload_data; | 1243 | (void) upload_data; |
1244 | (void) upload_data_size; /* Unused. Silent compiler warning. */ | 1244 | (void) upload_data_size; /* Unused. Silent compiler warning. */ |
1245 | 1245 | ||
1246 | if (NULL == con_cls) | 1246 | if (NULL == req_cls) |
1247 | mhdErrorExitDesc ("'con_cls' is NULL"); | 1247 | mhdErrorExitDesc ("'req_cls' is NULL"); |
1248 | if (NULL == *con_cls) | 1248 | if (NULL == *req_cls) |
1249 | mhdErrorExitDesc ("'*con_cls' value is NULL"); | 1249 | mhdErrorExitDesc ("'*req_cls' value is NULL"); |
1250 | if (! pthread_equal (**((pthread_t **) con_cls), pthread_self ())) | 1250 | if (! pthread_equal (**((pthread_t **) req_cls), pthread_self ())) |
1251 | mhdErrorExitDesc ("ahc_upgrade() is called in wrong thread"); | 1251 | mhdErrorExitDesc ("ahc_upgrade() is called in wrong thread"); |
1252 | resp = MHD_create_response_for_upgrade (&upgrade_cb, | 1252 | resp = MHD_create_response_for_upgrade (&upgrade_cb, |
1253 | NULL); | 1253 | NULL); |