X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;ds=sidebyside;f=lib%2Fstream-ssl.c;h=42690e481b8ab954cc7f921db1ad6c42909def61;hb=6e797088c0ff76843137c3ce0642b319b6404b7c;hp=ad572d3523c7a77d337498ab14a620e6dfbde90f;hpb=f1936eb65178f796d26a8d265697af8c19dce8cd;p=openvswitch diff --git a/lib/stream-ssl.c b/lib/stream-ssl.c index ad572d35..42690e48 100644 --- a/lib/stream-ssl.c +++ b/lib/stream-ssl.c @@ -1,5 +1,5 @@ /* - * Copyright (c) 2008, 2009, 2010, 2011 Nicira Networks. + * Copyright (c) 2008, 2009, 2010, 2011, 2012 Nicira, Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -902,7 +902,7 @@ do_ssl_init(void) /* New OpenSSL changed TLSv1_method() to return a "const" pointer, so the * cast is needed to avoid a warning with those newer versions. */ - method = (SSL_METHOD *) TLSv1_method(); + method = CONST_CAST(SSL_METHOD *, TLSv1_method()); if (method == NULL) { VLOG_ERR("TLSv1_method: %s", ERR_error_string(ERR_get_error(), NULL)); return ENOPROTOOPT;