diff lib-src/movemail.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 308d34e9f07d
children 9e308c7501d1
line wrap: on
line diff
--- a/lib-src/movemail.c	Sat Dec 12 21:49:31 2015 +0000
+++ b/lib-src/movemail.c	Sun Dec 13 13:22:58 2015 +0000
@@ -412,7 +412,7 @@
 #endif
 #ifdef HAVE_LOCKING
 	case LOCKING:
-	  if (locking (indesc, LK_RLCK, -1L) < 0)
+	  if (locking (indesc, LK_RLCK, -E1) < 0)
 	    pfatal_with_name (inname);
 	  break;
 #endif
@@ -458,7 +458,7 @@
 	case FLOCKING:
 	case LOCKING:
 #ifdef HAVE_FTRUNCATE
-	  ftruncate (indesc, 0L);
+	  ftruncate (indesc, E0);
 #else
 	  close (open (inname, O_CREAT | O_TRUNC | O_RDWR, 0666));
 #endif