From b008274afdbe375b32a7e66dbd073e200f6f0587 Mon Sep 17 00:00:00 2001 From: Werner Koch Date: Fri, 4 Feb 2011 12:57:53 +0100 Subject: Nuked almost all trailing white space. We better do this once and for all instead of cluttering all future commits with diffs of trailing white spaces. In the majority of cases blank or single lines are affected and thus this change won't disturb a git blame too much. For future commits the pre-commit scripts checks that this won't happen again. --- dirmngr/misc.c | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) (limited to 'dirmngr/misc.c') diff --git a/dirmngr/misc.c b/dirmngr/misc.c index 3d33bee58..82b694998 100644 --- a/dirmngr/misc.c +++ b/dirmngr/misc.c @@ -54,7 +54,7 @@ unhexify (unsigned char *result, const char *string) } -char* +char* hashify_data( const char* data, size_t len ) { unsigned char buf[20]; @@ -62,7 +62,7 @@ hashify_data( const char* data, size_t len ) return hexify_data( buf, 20 ); } -char* +char* hexify_data( const unsigned char* data, size_t len ) { int i; @@ -136,7 +136,7 @@ unpercent_string (char *string) while (*s) { if (*s == '%' && s[1] && s[2]) - { + { s++; *d++ = xtoi_2 ( s); s += 2; @@ -144,7 +144,7 @@ unpercent_string (char *string) else *d++ = *s++; } - *d = 0; + *d = 0; return string; } @@ -159,7 +159,7 @@ canon_sexp_to_gcry (const unsigned char *canon, gcry_sexp_t *r_sexp) *r_sexp = NULL; n = gcry_sexp_canon_len (canon, 0, NULL, NULL); - if (!n) + if (!n) { log_error (_("invalid canonical S-expression found\n")); err = gpg_error (GPG_ERR_INV_SEXP); @@ -284,7 +284,7 @@ dump_string (const char *string) /* Dump an KSBA cert object to the log stream. Prefix the output with TEXT. This is used for debugging. */ -void +void dump_cert (const char *text, ksba_cert_t cert) { ksba_sexp_t sexp; @@ -314,7 +314,7 @@ dump_cert (const char *text, ksba_cert_t cert) dump_string (p); ksba_free (p); log_printf ("\n"); - + p = ksba_cert_get_subject (cert, 0); log_debug (" subject: "); dump_string (p); @@ -334,7 +334,7 @@ dump_cert (const char *text, ksba_cert_t cert) /* Log the certificate's name in "#SN/ISSUERDN" format along with TEXT. */ -void +void cert_log_name (const char *text, ksba_cert_t cert) { log_info ("%s", text? text:"certificate" ); @@ -362,7 +362,7 @@ cert_log_name (const char *text, ksba_cert_t cert) /* Log the certificate's subject DN along with TEXT. */ -void +void cert_log_subject (const char *text, ksba_cert_t cert) { log_info ("%s", text? text:"subject" ); @@ -491,7 +491,7 @@ my_estream_ksba_reader_cb (void *cb_value, char *buffer, size_t count, size_t *r_nread) { estream_t fp = cb_value; - + if (!fp) return gpg_error (GPG_ERR_INV_VALUE); -- cgit v1.2.3