mirror of
https://github.com/curl/curl.git
synced 2026-08-25 15:13:41 +03:00
style: use space after comment start and before comment end
/* like this */ /*not this*/ checksrc is updated accordingly Closes #9828
This commit is contained in:
parent
b8c302dcba
commit
52cc4a85fd
42 changed files with 152 additions and 147 deletions
|
|
@ -129,7 +129,7 @@ static int onetest(CURL *curl, const char *url, const struct testparams *p,
|
|||
}
|
||||
|
||||
/* for debugging: */
|
||||
/*#define SINGLETEST 9*/
|
||||
/* #define SINGLETEST 9 */
|
||||
|
||||
int test(char *URL)
|
||||
{
|
||||
|
|
|
|||
|
|
@ -50,7 +50,7 @@ int test(char *URL)
|
|||
{
|
||||
CURL *curl = NULL;
|
||||
CURLcode res = CURLE_FAILED_INIT;
|
||||
/* http and proxy header list*/
|
||||
/* http and proxy header list */
|
||||
struct curl_slist *hhl = NULL;
|
||||
|
||||
if(curl_global_init(CURL_GLOBAL_ALL) != CURLE_OK) {
|
||||
|
|
|
|||
|
|
@ -48,7 +48,7 @@ int test(char *URL)
|
|||
{
|
||||
CURL *curl = NULL;
|
||||
CURLcode res = CURLE_FAILED_INIT;
|
||||
/* http and proxy header list*/
|
||||
/* http and proxy header list */
|
||||
struct curl_slist *hhl = NULL, *phl = NULL, *tmp = NULL;
|
||||
|
||||
if(curl_global_init(CURL_GLOBAL_ALL) != CURLE_OK) {
|
||||
|
|
|
|||
|
|
@ -49,7 +49,7 @@ int test(char *URL)
|
|||
{
|
||||
CURL *curl = NULL;
|
||||
CURLcode res = CURLE_FAILED_INIT;
|
||||
/* http header list*/
|
||||
/* http header list */
|
||||
struct curl_slist *hhl = NULL, *tmp = NULL;
|
||||
|
||||
if(curl_global_init(CURL_GLOBAL_ALL) != CURLE_OK) {
|
||||
|
|
|
|||
|
|
@ -30,7 +30,7 @@ int test(char *URL)
|
|||
{
|
||||
CURL *curl = NULL;
|
||||
CURLcode res = CURLE_FAILED_INIT;
|
||||
/* http header list*/
|
||||
/* http header list */
|
||||
struct curl_slist *hhl = NULL;
|
||||
struct curl_slist *phl = NULL;
|
||||
|
||||
|
|
|
|||
|
|
@ -77,7 +77,7 @@ int test(char *URL)
|
|||
{
|
||||
CURL *curl = NULL;
|
||||
CURLcode res = CURLE_FAILED_INIT;
|
||||
/* http and proxy header list*/
|
||||
/* http and proxy header list */
|
||||
struct curl_slist *hhl = NULL;
|
||||
|
||||
if(curl_global_init(CURL_GLOBAL_ALL) != CURLE_OK) {
|
||||
|
|
|
|||
|
|
@ -114,7 +114,6 @@ static size_t writecb(char *buffer, size_t size, size_t nitems, void *p)
|
|||
CURLcode result = CURLE_OK;
|
||||
fprintf(stderr, "send back a TEXT\n");
|
||||
(void)easy;
|
||||
/*result = curl_ws_send(easy, pong, 2, &sent, 0);*/
|
||||
if(result)
|
||||
nitems = 0;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -349,7 +349,7 @@ int test(char *URL)
|
|||
printf("-----------------\n");
|
||||
curl_slist_free_all(cookies);
|
||||
|
||||
/* try to free share, expect to fail because share is in use*/
|
||||
/* try to free share, expect to fail because share is in use */
|
||||
printf("try SHARE_CLEANUP...\n");
|
||||
scode = curl_share_cleanup(share);
|
||||
if(scode == CURLSHE_OK) {
|
||||
|
|
|
|||
|
|
@ -1345,7 +1345,7 @@ static int test_weird_arguments(void)
|
|||
"0123456789" /* 10 7 */
|
||||
"0123456789" /* 10 8 */
|
||||
"0123456789" /* 10 9 */
|
||||
"0123456789" /* 10 10*/
|
||||
"0123456789" /* 10 10 */
|
||||
"0123456789" /* 10 11 */
|
||||
"01234567" /* 8 */
|
||||
);
|
||||
|
|
|
|||
|
|
@ -217,7 +217,7 @@ int test(char *URL)
|
|||
printf("PERFORM\n");
|
||||
curl_easy_perform(curl);
|
||||
|
||||
/* try to free share, expect to fail because share is in use*/
|
||||
/* try to free share, expect to fail because share is in use */
|
||||
printf("try SHARE_CLEANUP...\n");
|
||||
scode = curl_share_cleanup(share);
|
||||
if(scode == CURLSHE_OK) {
|
||||
|
|
|
|||
|
|
@ -100,85 +100,85 @@ typedef struct gss_channel_bindings_struct {
|
|||
gss_buffer_desc application_data;
|
||||
} *gss_channel_bindings_t;
|
||||
|
||||
OM_uint32 gss_release_buffer(OM_uint32 * /*minor_status*/,
|
||||
gss_buffer_t /*buffer*/);
|
||||
OM_uint32 gss_release_buffer(OM_uint32 * /* minor_status */,
|
||||
gss_buffer_t /* buffer */);
|
||||
|
||||
OM_uint32 gss_init_sec_context(OM_uint32 * /*minor_status*/,
|
||||
gss_const_cred_id_t /*initiator_cred_handle*/,
|
||||
gss_ctx_id_t * /*context_handle*/,
|
||||
gss_const_name_t /*target_name*/,
|
||||
const gss_OID /*mech_type*/,
|
||||
OM_uint32 /*req_flags*/,
|
||||
OM_uint32 /*time_req*/,
|
||||
const gss_channel_bindings_t /*input_chan_bindings*/,
|
||||
const gss_buffer_t /*input_token*/,
|
||||
gss_OID * /*actual_mech_type*/,
|
||||
gss_buffer_t /*output_token*/,
|
||||
OM_uint32 * /*ret_flags*/,
|
||||
OM_uint32 * /*time_rec*/);
|
||||
OM_uint32 gss_init_sec_context(OM_uint32 * /* minor_status */,
|
||||
gss_const_cred_id_t /* initiator_cred_handle */,
|
||||
gss_ctx_id_t * /* context_handle */,
|
||||
gss_const_name_t /* target_name */,
|
||||
const gss_OID /* mech_type */,
|
||||
OM_uint32 /* req_flags */,
|
||||
OM_uint32 /* time_req */,
|
||||
const gss_channel_bindings_t /* input_chan_bindings */,
|
||||
const gss_buffer_t /* input_token */,
|
||||
gss_OID * /* actual_mech_type */,
|
||||
gss_buffer_t /* output_token */,
|
||||
OM_uint32 * /* ret_flags */,
|
||||
OM_uint32 * /* time_rec */);
|
||||
|
||||
OM_uint32 gss_delete_sec_context(OM_uint32 * /*minor_status*/,
|
||||
gss_ctx_id_t * /*context_handle*/,
|
||||
gss_buffer_t /*output_token*/);
|
||||
OM_uint32 gss_delete_sec_context(OM_uint32 * /* minor_status */,
|
||||
gss_ctx_id_t * /* context_handle */,
|
||||
gss_buffer_t /* output_token */);
|
||||
|
||||
OM_uint32 gss_inquire_context(OM_uint32 * /*minor_status*/,
|
||||
gss_const_ctx_id_t /*context_handle*/,
|
||||
gss_name_t * /*src_name*/,
|
||||
gss_name_t * /*targ_name*/,
|
||||
OM_uint32 * /*lifetime_rec*/,
|
||||
gss_OID * /*mech_type*/,
|
||||
OM_uint32 * /*ctx_flags*/,
|
||||
int * /*locally_initiated*/,
|
||||
int * /*open_context*/);
|
||||
OM_uint32 gss_inquire_context(OM_uint32 * /* minor_status */,
|
||||
gss_const_ctx_id_t /* context_handle */,
|
||||
gss_name_t * /* src_name */,
|
||||
gss_name_t * /* targ_name */,
|
||||
OM_uint32 * /* lifetime_rec */,
|
||||
gss_OID * /* mech_type */,
|
||||
OM_uint32 * /* ctx_flags */,
|
||||
int * /* locally_initiated */,
|
||||
int * /* open_context */);
|
||||
|
||||
OM_uint32 gss_wrap(OM_uint32 * /*minor_status*/,
|
||||
gss_const_ctx_id_t /*context_handle*/,
|
||||
int /*conf_req_flag*/,
|
||||
gss_qop_t /*qop_req*/,
|
||||
const gss_buffer_t /*input_message_buffer*/,
|
||||
int * /*conf_state*/,
|
||||
gss_buffer_t /*output_message_buffer*/);
|
||||
OM_uint32 gss_wrap(OM_uint32 * /* minor_status */,
|
||||
gss_const_ctx_id_t /* context_handle */,
|
||||
int /* conf_req_flag */,
|
||||
gss_qop_t /* qop_req */,
|
||||
const gss_buffer_t /* input_message_buffer */,
|
||||
int * /* conf_state */,
|
||||
gss_buffer_t /* output_message_buffer */);
|
||||
|
||||
OM_uint32 gss_unwrap(OM_uint32 * /*minor_status*/,
|
||||
gss_const_ctx_id_t /*context_handle*/,
|
||||
const gss_buffer_t /*input_message_buffer*/,
|
||||
gss_buffer_t /*output_message_buffer*/,
|
||||
int * /*conf_state*/,
|
||||
gss_qop_t * /*qop_state*/);
|
||||
OM_uint32 gss_unwrap(OM_uint32 * /* minor_status */,
|
||||
gss_const_ctx_id_t /* context_handle */,
|
||||
const gss_buffer_t /* input_message_buffer */,
|
||||
gss_buffer_t /* output_message_buffer */,
|
||||
int * /* conf_state */,
|
||||
gss_qop_t * /* qop_state */);
|
||||
|
||||
OM_uint32 gss_seal(OM_uint32 * /*minor_status*/,
|
||||
gss_ctx_id_t /*context_handle*/,
|
||||
int /*conf_req_flag*/,
|
||||
int /*qop_req*/,
|
||||
gss_buffer_t /*input_message_buffer*/,
|
||||
int * /*conf_state*/,
|
||||
gss_buffer_t /*output_message_buffer*/);
|
||||
OM_uint32 gss_seal(OM_uint32 * /* minor_status */,
|
||||
gss_ctx_id_t /* context_handle n */,
|
||||
int /* conf_req_flag */,
|
||||
int /* qop_req */,
|
||||
gss_buffer_t /* input_message_buffer */,
|
||||
int * /* conf_state */,
|
||||
gss_buffer_t /* output_message_buffer */);
|
||||
|
||||
OM_uint32 gss_unseal(OM_uint32 * /*minor_status*/,
|
||||
gss_ctx_id_t /*context_handle*/,
|
||||
gss_buffer_t /*input_message_buffer*/,
|
||||
gss_buffer_t /*output_message_buffer*/,
|
||||
int * /*conf_state*/,
|
||||
int * /*qop_state*/);
|
||||
OM_uint32 gss_unseal(OM_uint32 * /* minor_status */,
|
||||
gss_ctx_id_t /* context_handle */,
|
||||
gss_buffer_t /* input_message_buffer */,
|
||||
gss_buffer_t /* output_message_buffer */,
|
||||
int * /* conf_state */,
|
||||
int * /* qop_state */);
|
||||
|
||||
OM_uint32 gss_import_name(OM_uint32 * /*minor_status*/,
|
||||
const gss_buffer_t /*input_name_buffer*/,
|
||||
const gss_OID /*input_name_type*/,
|
||||
gss_name_t * /*output_name*/);
|
||||
OM_uint32 gss_import_name(OM_uint32 * /* minor_status */,
|
||||
const gss_buffer_t /* input_name_buffer */,
|
||||
const gss_OID /* input_name_type */,
|
||||
gss_name_t * /* output_name */);
|
||||
|
||||
OM_uint32 gss_release_name(OM_uint32 * /*minor_status*/,
|
||||
gss_name_t * /*input_name*/);
|
||||
OM_uint32 gss_release_name(OM_uint32 * /* minor_status */,
|
||||
gss_name_t * /* input_name */);
|
||||
|
||||
OM_uint32 gss_display_name(OM_uint32 * /*minor_status*/,
|
||||
gss_const_name_t /*input_name*/,
|
||||
gss_buffer_t /*output_name_buffer*/,
|
||||
gss_OID * /*output_name_type*/);
|
||||
OM_uint32 gss_display_name(OM_uint32 * /* minor_status */,
|
||||
gss_const_name_t /* input_name */,
|
||||
gss_buffer_t /* output_name_buffer */,
|
||||
gss_OID * /* output_name_type */);
|
||||
|
||||
OM_uint32 gss_display_status(OM_uint32 * /*minor_status*/,
|
||||
OM_uint32 /*status_value*/,
|
||||
int /*status_type*/,
|
||||
const gss_OID /*mech_type*/,
|
||||
OM_uint32 * /*message_context*/,
|
||||
gss_buffer_t /*status_string*/);
|
||||
OM_uint32 gss_display_status(OM_uint32 * /* minor_status */,
|
||||
OM_uint32 /* status_value */,
|
||||
int /* status_type */,
|
||||
const gss_OID /* mech_type */,
|
||||
OM_uint32 * /* message_context */,
|
||||
gss_buffer_t /* status_string */);
|
||||
|
||||
#endif /* HEADER_CURL_GSSAPI_STUBS_H */
|
||||
|
|
|
|||
|
|
@ -34,7 +34,7 @@
|
|||
((__GNUC__ == 2) && defined(__GNUC_MINOR__) && (__GNUC_MINOR__ >= 7)))
|
||||
# define PACKED_STRUCT __attribute__((__packed__))
|
||||
#else
|
||||
# define PACKED_STRUCT /*NOTHING*/
|
||||
# define PACKED_STRUCT /* NOTHING */
|
||||
#endif
|
||||
|
||||
/* Using a packed struct as binary in a program is begging for problems, but
|
||||
|
|
|
|||
|
|
@ -67,7 +67,7 @@
|
|||
((__W32API_MAJOR_VERSION == 3) && (__W32API_MINOR_VERSION < 6))
|
||||
const struct in6_addr in6addr_any = {{ IN6ADDR_ANY_INIT }};
|
||||
#endif /* w32api < 3.6 */
|
||||
#endif /* ENABLE_IPV6 && __MINGW32__*/
|
||||
#endif /* ENABLE_IPV6 && __MINGW32__ */
|
||||
|
||||
static struct timeval tvnow(void);
|
||||
|
||||
|
|
|
|||
|
|
@ -93,10 +93,10 @@ UNITTEST_START
|
|||
|
||||
fail_unless(Curl_llist_count(&llist) == 1,
|
||||
"List size should be 1 after adding a new element");
|
||||
/*test that the list head data holds my unusedData */
|
||||
/* test that the list head data holds my unusedData */
|
||||
fail_unless(llist.head->ptr == &unusedData_case1,
|
||||
"head ptr should be first entry");
|
||||
/*same goes for the list tail */
|
||||
/* same goes for the list tail */
|
||||
fail_unless(llist.tail == llist.head,
|
||||
"tail and head should be the same");
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue