X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=src%2Fsrc%2Fexim_lock.c;h=37d9744771217b245aaf386faf3d337524984c08;hb=a1bccd48f3956b50a13a34f5aed4b72c658c61af;hp=0d3475138293aa64f924f801d6f231d7465c65f4;hpb=1ac6b2e7857d7b6645dbd09047c4c2ac3b6cef1d;p=exim.git diff --git a/src/src/exim_lock.c b/src/src/exim_lock.c index 0d3475138..37d974477 100644 --- a/src/src/exim_lock.c +++ b/src/src/exim_lock.c @@ -175,7 +175,7 @@ int fd = -1; int hd = -1; int md = -1; int yield = 0; -int now = time(NULL); +time_t now = time(NULL); BOOL use_lockfile = FALSE; BOOL use_fcntl = FALSE; BOOL use_flock = FALSE; @@ -300,8 +300,10 @@ if (use_lockfile) lockname = malloc(len + 8); sprintf(lockname, "%s.lock", filename); hitchname = malloc(len + 32 + (int)strlen(primary_hostname)); + + /* Presumably, this must match appendfile.c */ sprintf(hitchname, "%s.%s.%08x.%08x", lockname, primary_hostname, - now, (int)getpid()); + (unsigned int)now, (unsigned int)getpid()); if (verbose) printf("exim_lock: lockname = %s\n hitchname = %s\n", lockname,