From dbadaebfc4e9d453232795f54d4fe5618cf8e84d Mon Sep 17 00:00:00 2001 From: Daniel Stenberg Date: Wed, 23 Nov 2016 07:53:24 +0100 Subject: checksrc: code style: use 'char *name' style --- docs/examples/curlx.c | 42 +++++++++++++++++++++--------------------- 1 file changed, 21 insertions(+), 21 deletions(-) (limited to 'docs/examples/curlx.c') diff --git a/docs/examples/curlx.c b/docs/examples/curlx.c index 155da2371..e0d709999 100644 --- a/docs/examples/curlx.c +++ b/docs/examples/curlx.c @@ -133,14 +133,14 @@ static const char *curlx_usage[]={ /* This is a context that we pass to all callbacks */ typedef struct sslctxparm_st { - unsigned char * p12file; - const char * pst; - PKCS12 * p12; - EVP_PKEY * pkey; - X509 * usercert; + unsigned char *p12file; + const char *pst; + PKCS12 *p12; + EVP_PKEY *pkey; + X509 *usercert; STACK_OF(X509) * ca; - CURL * curl; - BIO * errorbio; + CURL *curl; + BIO *errorbio; int accesstype; int verbose; @@ -196,7 +196,7 @@ static int ssl_app_verify_callback(X509_STORE_CTX *ctx, void *arg) BIO_printf(p->errorbio, "entering ssl_app_verify_callback\n"); if((ok= X509_verify_cert(ctx)) && ctx->cert) { - unsigned char * accessinfo; + unsigned char *accessinfo; if(p->verbose > 1) X509_print_ex(p->errorbio, ctx->cert, 0, 0); @@ -228,10 +228,10 @@ static int ssl_app_verify_callback(X509_STORE_CTX *ctx, void *arg) - an application verification callback (the function above) */ -static CURLcode sslctxfun(CURL * curl, void * sslctx, void * parm) +static CURLcode sslctxfun(CURL *curl, void *sslctx, void *parm) { - sslctxparm * p = (sslctxparm *) parm; - SSL_CTX * ctx = (SSL_CTX *) sslctx; + sslctxparm *p = (sslctxparm *) parm; + SSL_CTX *ctx = (SSL_CTX *) sslctx; if(!SSL_CTX_use_certificate(ctx, p->usercert)) { BIO_printf(p->errorbio, "SSL_CTX_use_certificate problem\n"); @@ -270,24 +270,24 @@ int main(int argc, char **argv) BIO* in=NULL; BIO* out=NULL; - char * outfile = NULL; - char * infile = NULL; + char *outfile = NULL; + char *infile = NULL; int tabLength=100; char *binaryptr; - char* mimetype; - char* mimetypeaccept=NULL; - char* contenttype; - const char** pp; - unsigned char* hostporturl = NULL; - BIO * p12bio; + char *mimetype; + char *mimetypeaccept=NULL; + char *contenttype; + const char **pp; + unsigned char *hostporturl = NULL; + BIO *p12bio; char **args = argv + 1; - unsigned char * serverurl; + unsigned char *serverurl; sslctxparm p; char *response; CURLcode res; - struct curl_slist * headers=NULL; + struct curl_slist *headers=NULL; int badarg=0; binaryptr = malloc(tabLength); -- cgit v1.2.3