diff options
author | David Benjamin <davidben@chromium.org> | 2014-08-21 00:24:00 +0400 |
---|---|---|
committer | Adam Langley <agl@google.com> | 2014-08-21 05:06:07 +0400 |
commit | c44d2f4cb8a892a603edbbe710fa82bcd30f9cb5 (patch) | |
tree | 8e26839eef5cc06c2bd3b0e3461f33b746b48d15 /crypto/ec/example_mul.c | |
parent | 5213df4e9ed9ca130c40f142893cb91f2e18eee1 (diff) |
Convert all zero-argument functions to '(void)'
Otherwise, in C, it becomes a K&R function declaration which doesn't actually
type-check the number of arguments.
Change-Id: I0731a9fefca46fb1c266bfb1c33d464cf451a22e
Reviewed-on: https://boringssl-review.googlesource.com/1582
Reviewed-by: Adam Langley <agl@google.com>
Diffstat (limited to 'crypto/ec/example_mul.c')
-rw-r--r-- | crypto/ec/example_mul.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/crypto/ec/example_mul.c b/crypto/ec/example_mul.c index 1e83d619..d65c3a17 100644 --- a/crypto/ec/example_mul.c +++ b/crypto/ec/example_mul.c @@ -72,7 +72,7 @@ #include <openssl/obj.h> -int example_EC_POINT_mul() { +int example_EC_POINT_mul(void) { /* This example ensures that 10×∞ + G = G, in P-256. */ EC_GROUP *group = NULL; EC_POINT *p = NULL, *result = NULL; @@ -119,7 +119,7 @@ err: return ret; } -int main() { +int main(void) { if (!example_EC_POINT_mul()) { fprintf(stderr, "failed\n"); return 1; |