diff options
author | Richard Levitte <levitte@openssl.org> | 2016-01-30 15:39:34 +0100 |
---|---|---|
committer | Richard Levitte <levitte@openssl.org> | 2016-01-30 16:23:44 +0100 |
commit | 33254e1c6fa6a1acf28fd0d9b6dc4ee30e569b95 (patch) | |
tree | f5b83d4466c8a1e593b73a5b1a342d14e7e58151 /apps/apps.h | |
parent | 421e30ec67451ac653e790295a36461a4069d0e4 (diff) | |
download | openssl-33254e1c6fa6a1acf28fd0d9b6dc4ee30e569b95.tar.gz |
Fix opt_imax() call
Not all architectures have a time_t defined the same way. To make
sure we get the same result, we need to cast &checkoffset to (intmax_t *)
and make sure that intmax_t is defined somehow.
To make really sure we don't pass a variable with the wrong size down
to opt_imax(), we use a temporary intmax_t.
Reviewed-by: Rich Salz <rsalz@openssl.org>
Diffstat (limited to 'apps/apps.h')
-rw-r--r-- | apps/apps.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/apps/apps.h b/apps/apps.h index b6e894de39..5ea148d9f3 100644 --- a/apps/apps.h +++ b/apps/apps.h @@ -145,6 +145,8 @@ int opt_umax(const char *value, uintmax_t *result); # else # define opt_imax opt_long # define opt_umax opt_ulong +# define intmax_t long +# define uintmax_t unsigned long # endif int app_RAND_load_file(const char *file, int dont_warn); |