Source-Changes-HG archive

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

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



details:   https://anonhg.NetBSD.org/src/rev/3013457a43c7
branches:  trunk
changeset: 1021406:3013457a43c7
user:      joerg <joerg%NetBSD.org@localhost>
date:      Sun May 30 00:19:08 2021 +0000

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

diffstat:

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

diffs (18 lines):

diff -r 89740cf33e2b -r 3013457a43c7 external/bsd/libevent/dist/test/regress_ssl.c
--- a/external/bsd/libevent/dist/test/regress_ssl.c     Sun May 30 00:17:20 2021 +0000
+++ b/external/bsd/libevent/dist/test/regress_ssl.c     Sun May 30 00:19:08 2021 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: regress_ssl.c,v 1.5 2021/04/07 03:36:48 christos Exp $ */
+/*     $NetBSD: regress_ssl.c,v 1.6 2021/05/30 00:19:08 joerg Exp $    */
 
 /*
  * Copyright (c) 2009-2012 Niels Provos and Nick Mathewson
@@ -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