Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src-draft/trunk]: src/external/bsd/libevent/dist/test Cast to enums via uint...



details:   https://anonhg.NetBSD.org/src-all/rev/42b9943cbd7c
branches:  trunk
changeset: 983533:42b9943cbd7c
user:      Joerg Sonnenberger <joerg%bec.de@localhost>
date:      Mon May 24 22:46:24 2021 +0200

description:
Cast to enums via uintptr_t to avoid compiler warnings.

diffstat:

 external/bsd/libevent/dist/test/regress_ssl.c |  2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diffs (12 lines):

diff -r 0ef0fe5b32ab -r 42b9943cbd7c external/bsd/libevent/dist/test/regress_ssl.c
--- a/external/bsd/libevent/dist/test/regress_ssl.c     Mon May 24 01:13:41 2021 +0200
+++ b/external/bsd/libevent/dist/test/regress_ssl.c     Mon May 24 22:46:24 2021 +0200
@@ -891,7 +891,7 @@
        struct sockaddr_in sin;
        struct sockaddr_storage ss;
        enum regress_openssl_type type =
-               (enum regress_openssl_type)data->setup_data;
+               (enum regress_openssl_type)(uintptr_t)data->setup_data;
        int bev_flags = BEV_OPT_CLOSE_ON_FREE;
        ev_socklen_t slen;
        SSL *ssl;



Home | Main Index | Thread Index | Old Index