From 0582fd02701f23a0ca9622b6577843960c3152b6 Mon Sep 17 00:00:00 2001 From: Stephen Gallagher Date: Fri, 13 Jan 2023 16:04:56 -0500 Subject: [PATCH] clang format Signed-off-by: Stephen Gallagher --- include/sscg.h | 2 +- src/cert.c | 4 ++-- src/sscg.c | 6 +++--- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/include/sscg.h b/include/sscg.h index 35ed05f..d443138 100644 --- a/include/sscg.h +++ b/include/sscg.h @@ -49,7 +49,7 @@ #endif #ifndef discard_const -#define discard_const(ptr) ((void *)((uintptr_t) (ptr))) +#define discard_const(ptr) ((void *)((uintptr_t)(ptr))) #endif #ifndef talloc_zfree diff --git a/src/cert.c b/src/cert.c index e4d45da..627d613 100644 --- a/src/cert.c +++ b/src/cert.c @@ -150,8 +150,8 @@ create_cert (TALLOC_CTX *mem_ctx, if (options->verbosity >= SSCG_DEBUG) { - const char *tempcert = - SSCG_CERT_TYPE_SERVER ? "/tmp/debug-service.csr" : "/tmp/debug-client.csr"; + const char *tempcert = SSCG_CERT_TYPE_SERVER ? "/tmp/debug-service.csr" : + "/tmp/debug-client.csr"; fprintf (stderr, "DEBUG: Writing certificate CSR to %s\n", tempcert); BIO *csr_out = BIO_new_file (tempcert, "w"); diff --git a/src/sscg.c b/src/sscg.c index c464f38..740b369 100644 --- a/src/sscg.c +++ b/src/sscg.c @@ -196,9 +196,9 @@ main (int argc, const char **argv) CHECK_MEM (dhparams_file); ret = sscg_io_utils_add_output_file (options->streams, - SSCG_FILE_TYPE_DHPARAMS, - dhparams_file, - options->dhparams_mode); + SSCG_FILE_TYPE_DHPARAMS, + dhparams_file, + options->dhparams_mode); CHECK_OK (ret); } /* Validate and open the file paths */