Skip to content

Commit

Permalink
clang format
Browse files Browse the repository at this point in the history
Signed-off-by: Stephen Gallagher <[email protected]>
  • Loading branch information
sgallagher committed Jan 13, 2023
1 parent c41758d commit 0582fd0
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion include/sscg.h
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions src/cert.c
Original file line number Diff line number Diff line change
Expand Up @@ -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");
Expand Down
6 changes: 3 additions & 3 deletions src/sscg.c
Original file line number Diff line number Diff line change
Expand Up @@ -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 */
Expand Down

0 comments on commit 0582fd0

Please sign in to comment.