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/12c28bc7ad8a
branches: trunk
changeset: 983581:12c28bc7ad8a
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 badac6f7c56d -r 12c28bc7ad8a 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