summaryrefslogtreecommitdiffstats
path: root/demos/err
diff options
context:
space:
mode:
authorMatt Caswell <matt@openssl.org>2015-01-22 03:40:55 +0000
committerMatt Caswell <matt@openssl.org>2015-01-22 09:20:09 +0000
commit0f113f3ee4d629ef9a4a30911b22b224772085e5 (patch)
treee014603da5aed1d0751f587a66d6e270b6bda3de /demos/err
parent22b52164aaed31d6e93dbd2d397ace041360e6aa (diff)
Run util/openssl-format-source -v -c .
Reviewed-by: Tim Hudson <tjh@openssl.org>
Diffstat (limited to 'demos/err')
-rw-r--r--demos/err/main.c20
-rw-r--r--demos/err/test_err.h11
2 files changed, 16 insertions, 15 deletions
diff --git a/demos/err/main.c b/demos/err/main.c
index 7f09fbfc7e..a9a6a574e1 100644
--- a/demos/err/main.c
+++ b/demos/err/main.c
@@ -5,15 +5,15 @@
/* Simple error test routine */
void a_test_function(void)
- {
- TESTerr(TEST_F_A_TEST_FUNCTION, TEST_R_TEST_REASON_CODE);
- TESTerr(TEST_F_A_TEST_FUNCTION, TEST_R_ANOTHER_TEST_REASON_CODE);
- ERR_add_error_data(1, "some additional error data");
- }
+{
+ TESTerr(TEST_F_A_TEST_FUNCTION, TEST_R_TEST_REASON_CODE);
+ TESTerr(TEST_F_A_TEST_FUNCTION, TEST_R_ANOTHER_TEST_REASON_CODE);
+ ERR_add_error_data(1, "some additional error data");
+}
int main(int argc, char **argv)
- {
- ERR_load_TEST_strings();
- a_test_function();
- ERR_print_errors_fp(stderr);
- }
+{
+ ERR_load_TEST_strings();
+ a_test_function();
+ ERR_print_errors_fp(stderr);
+}
diff --git a/demos/err/test_err.h b/demos/err/test_err.h
index 96add52800..a056815193 100644
--- a/demos/err/test_err.h
+++ b/demos/err/test_err.h
@@ -1,7 +1,7 @@
/* Demo of use of error library */
#ifndef TEST_ERR_H
-#define TEST_ERR_H
+# define TEST_ERR_H
#ifdef __cplusplus
extern "C" {
@@ -9,16 +9,17 @@ extern "C" {
/* Test library name */
-#define TEST_LIB_NAME "demo test library routines"
+# define TEST_LIB_NAME "demo test library routines"
/* Normal header details go here */
-/* Prototypes are picked up by the error script to generate strings for
+/*
+ * Prototypes are picked up by the error script to generate strings for
* function names.
*/
void a_test_function(void);
-/* Everything after this point is auto generated when you do
- * "make errors"
+/*
+ * Everything after this point is auto generated when you do "make errors"
*/