diff src/tls.c @ 5936:574f0cded429 cygwin

try to replace all nnnL or nnnUL constants with EMACS_[U]INT
author Henry Thompson <ht@markup.co.uk>
date Sun, 13 Dec 2015 13:22:58 +0000
parents 5d5aeb79edb4
children
line wrap: on
line diff
--- a/src/tls.c	Sat Dec 12 21:49:31 2015 +0000
+++ b/src/tls.c	Sun Dec 13 13:22:58 2015 +0000
@@ -803,7 +803,7 @@
 openssl_report_error_stack (const char *msg, const SSL *ssl)
 {
   unsigned long err = ERR_get_error ();
-  if (err > 0UL)
+  if (err > UE0)
     {
       if (ERR_GET_LIB (err) == ERR_LIB_SSL &&
 	  ERR_GET_REASON (err) == SSL_R_CERTIFICATE_VERIFY_FAILED)
@@ -854,7 +854,7 @@
       err = 1;
       break;
     case SSL_ERROR_SYSCALL:
-      if (openssl_report_error_stack (msg, ssl) == 0UL && ret < 0)
+      if (openssl_report_error_stack (msg, ssl) == UE0 && ret < 0)
 	warn_when_safe (Qtls_error, Qerror, "%s: %s", msg,
 			strerror (errno_copy));
       err = ret;