From de3930eed91e934f7842beb8932153ca7e568047 Mon Sep 17 00:00:00 2001 From: David Levine Date: Sat, 31 Mar 2012 11:52:10 -0500 Subject: [PATCH] Added const qualifier to a couple of local pointers to get rid of compile warnings with --with-tls. --- mts/smtp/smtp.c | 4 ++-- test/README | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/mts/smtp/smtp.c b/mts/smtp/smtp.c index 5e4b7bd..3ba9fbc 100644 --- a/mts/smtp/smtp.c +++ b/mts/smtp/smtp.c @@ -316,7 +316,7 @@ smtp_init (char *client, char *server, char *port, int watch, int verbose, */ if (! sslctx) { - SSL_METHOD *method; + const SSL_METHOD *method; SSL_library_init(); SSL_load_error_strings(); @@ -386,7 +386,7 @@ smtp_init (char *client, char *server, char *port, int watch, int verbose, } if (sm_debug) { - SSL_CIPHER *cipher = SSL_get_current_cipher(ssl); + const SSL_CIPHER *cipher = SSL_get_current_cipher(ssl); printf("SSL negotiation successful: %s(%d) %s\n", SSL_CIPHER_get_name(cipher), SSL_CIPHER_get_bits(cipher, NULL), diff --git a/test/README b/test/README index 6d39162..ad2190a 100644 --- a/test/README +++ b/test/README @@ -17,7 +17,7 @@ designed to work with Automake. To run these tests you can do "make check" via the top-level Makefile. This is also done automatically via "make distcheck". -WARNING: The test suite installs nmh and run the tests on that test +WARNING: The test suite installs nmh and runs the tests on that test installation. If you run tests individually, they will not remove that test installation or check to see if it remains up to date with your nmh workspace. You can run test/clean after a test to remove the -- 1.7.10.4