mirror of
https://git.gnunet.org/libmicrohttpd.git
synced 2026-09-27 04:09:31 +03:00
testzzuf: print wrong callback parameters values
This commit is contained in:
@@ -75,6 +75,16 @@ ahc_echo (void *cls,
|
||||
enum MHD_Result ret;
|
||||
(void) version; (void) upload_data; (void) upload_data_size; /* Unused. Silent compiler warning. */
|
||||
|
||||
if (NULL == url)
|
||||
fprintf (stderr, "The \"url\" parameter is NULL.\n");
|
||||
if (NULL == method)
|
||||
fprintf (stderr, "The \"method\" parameter is NULL.\n");
|
||||
if (NULL == version)
|
||||
fprintf (stderr, "The \"version\" parameter is NULL.\n");
|
||||
if (NULL == upload_data_size)
|
||||
fprintf (stderr, "The \"upload_data_size\" parameter is NULL.\n");
|
||||
if ((0 != *upload_data_size) && (NULL == upload_data))
|
||||
fprintf (stderr, "Upload data is NULL with non-zero size.\n");
|
||||
if (0 != strcmp (me, method))
|
||||
return MHD_NO; /* unexpected method */
|
||||
if (&ptr != *unused)
|
||||
|
||||
@@ -108,6 +108,16 @@ ahc_echo (void *cls,
|
||||
(void) upload_data;
|
||||
(void) upload_data_size; /* Unused. Silent compiler warning. */
|
||||
|
||||
if (NULL == url)
|
||||
fprintf (stderr, "The \"url\" parameter is NULL.\n");
|
||||
if (NULL == method)
|
||||
fprintf (stderr, "The \"method\" parameter is NULL.\n");
|
||||
if (NULL == version)
|
||||
fprintf (stderr, "The \"version\" parameter is NULL.\n");
|
||||
if (NULL == upload_data_size)
|
||||
fprintf (stderr, "The \"upload_data_size\" parameter is NULL.\n");
|
||||
if ((0 != *upload_data_size) && (NULL == upload_data))
|
||||
fprintf (stderr, "Upload data is NULL with non-zero size.\n");
|
||||
if (0 != strcmp (me, method))
|
||||
return MHD_NO; /* unexpected method */
|
||||
if (&aptr != *ptr)
|
||||
|
||||
@@ -85,6 +85,16 @@ ahc_echo (void *cls,
|
||||
(void) version; (void) upload_data; /* Unused. Silent compiler warning. */
|
||||
(void) upload_data_size; (void) unused; /* Unused. Silent compiler warning. */
|
||||
|
||||
if (NULL == url)
|
||||
fprintf (stderr, "The \"url\" parameter is NULL.\n");
|
||||
if (NULL == method)
|
||||
fprintf (stderr, "The \"method\" parameter is NULL.\n");
|
||||
if (NULL == version)
|
||||
fprintf (stderr, "The \"version\" parameter is NULL.\n");
|
||||
if (NULL == upload_data_size)
|
||||
fprintf (stderr, "The \"upload_data_size\" parameter is NULL.\n");
|
||||
if ((0 != *upload_data_size) && (NULL == upload_data))
|
||||
fprintf (stderr, "Upload data is NULL with non-zero size.\n");
|
||||
if (0 != strcmp (me, method))
|
||||
return MHD_NO; /* unexpected method */
|
||||
response = MHD_create_response_from_buffer (strlen (url),
|
||||
|
||||
@@ -122,6 +122,16 @@ ahc_echo (void *cls,
|
||||
enum MHD_Result ret;
|
||||
(void) cls; (void) version; /* Unused. Silent compiler warning. */
|
||||
|
||||
if (NULL == url)
|
||||
fprintf (stderr, "The \"url\" parameter is NULL.\n");
|
||||
if (NULL == method)
|
||||
fprintf (stderr, "The \"method\" parameter is NULL.\n");
|
||||
if (NULL == version)
|
||||
fprintf (stderr, "The \"version\" parameter is NULL.\n");
|
||||
if (NULL == upload_data_size)
|
||||
fprintf (stderr, "The \"upload_data_size\" parameter is NULL.\n");
|
||||
if ((0 != *upload_data_size) && (NULL == upload_data))
|
||||
fprintf (stderr, "Upload data is NULL with non-zero size.\n");
|
||||
if (0 != strcmp ("POST", method))
|
||||
{
|
||||
return MHD_NO; /* unexpected method */
|
||||
|
||||
@@ -125,6 +125,16 @@ ahc_echo (void *cls,
|
||||
enum MHD_Result ret;
|
||||
(void) cls; (void) version; /* Unused. Silent compiler warning. */
|
||||
|
||||
if (NULL == url)
|
||||
fprintf (stderr, "The \"url\" parameter is NULL.\n");
|
||||
if (NULL == method)
|
||||
fprintf (stderr, "The \"method\" parameter is NULL.\n");
|
||||
if (NULL == version)
|
||||
fprintf (stderr, "The \"version\" parameter is NULL.\n");
|
||||
if (NULL == upload_data_size)
|
||||
fprintf (stderr, "The \"upload_data_size\" parameter is NULL.\n");
|
||||
if ((0 != *upload_data_size) && (NULL == upload_data))
|
||||
fprintf (stderr, "Upload data is NULL with non-zero size.\n");
|
||||
if (0 != strcmp ("POST", method))
|
||||
{
|
||||
return MHD_NO; /* unexpected method */
|
||||
|
||||
@@ -90,6 +90,16 @@ ahc_echo (void *cls,
|
||||
enum MHD_Result ret;
|
||||
(void) version; (void) unused; /* Unused. Silent compiler warning. */
|
||||
|
||||
if (NULL == url)
|
||||
fprintf (stderr, "The \"url\" parameter is NULL.\n");
|
||||
if (NULL == method)
|
||||
fprintf (stderr, "The \"method\" parameter is NULL.\n");
|
||||
if (NULL == version)
|
||||
fprintf (stderr, "The \"version\" parameter is NULL.\n");
|
||||
if (NULL == upload_data_size)
|
||||
fprintf (stderr, "The \"upload_data_size\" parameter is NULL.\n");
|
||||
if ((0 != *upload_data_size) && (NULL == upload_data))
|
||||
fprintf (stderr, "Upload data is NULL with non-zero size.\n");
|
||||
if (0 != strcmp ("PUT", method))
|
||||
return MHD_NO; /* unexpected method */
|
||||
if ((*done) == 0)
|
||||
|
||||
@@ -91,6 +91,16 @@ ahc_echo (void *cls,
|
||||
int have;
|
||||
(void) version; (void) unused; /* Unused. Silent compiler warning. */
|
||||
|
||||
if (NULL == url)
|
||||
fprintf (stderr, "The \"url\" parameter is NULL.\n");
|
||||
if (NULL == method)
|
||||
fprintf (stderr, "The \"method\" parameter is NULL.\n");
|
||||
if (NULL == version)
|
||||
fprintf (stderr, "The \"version\" parameter is NULL.\n");
|
||||
if (NULL == upload_data_size)
|
||||
fprintf (stderr, "The \"upload_data_size\" parameter is NULL.\n");
|
||||
if ((0 != *upload_data_size) && (NULL == upload_data))
|
||||
fprintf (stderr, "Upload data is NULL with non-zero size.\n");
|
||||
if (0 != strcmp ("PUT", method))
|
||||
return MHD_NO; /* unexpected method */
|
||||
if ((*done) < 8)
|
||||
|
||||
@@ -98,6 +98,16 @@ ahc_echo (void *cls,
|
||||
enum MHD_Result ret;
|
||||
(void) version; (void) unused; /* Unused. Silent compiler warning. */
|
||||
|
||||
if (NULL == url)
|
||||
fprintf (stderr, "The \"url\" parameter is NULL.\n");
|
||||
if (NULL == method)
|
||||
fprintf (stderr, "The \"method\" parameter is NULL.\n");
|
||||
if (NULL == version)
|
||||
fprintf (stderr, "The \"version\" parameter is NULL.\n");
|
||||
if (NULL == upload_data_size)
|
||||
fprintf (stderr, "The \"upload_data_size\" parameter is NULL.\n");
|
||||
if ((0 != *upload_data_size) && (NULL == upload_data))
|
||||
fprintf (stderr, "Upload data is NULL with non-zero size.\n");
|
||||
if (0 != strcmp ("PUT", method))
|
||||
return MHD_NO; /* unexpected method */
|
||||
if ((*done) == 0)
|
||||
|
||||
Reference in New Issue
Block a user