Commit 83bee61e authored by unknown's avatar unknown
Browse files

Prevent potential problems on 32-Bit machines.

parent 098a1e3a
Loading
Loading
Loading
Loading
+4 −4
Original line number Diff line number Diff line
@@ -118,9 +118,9 @@ int my_lock(File fd, int locktype, my_off_t start, my_off_t length,
  {
    struct flock lock;
    lock.l_type=   (short) locktype;
    lock.l_whence=0L;
    lock.l_start=(long) start;
    lock.l_len=(long) length;
    lock.l_whence= SEEK_SET;
    lock.l_start=  (off_t) start;
    lock.l_len=    (off_t) length;
    if (MyFlags & MY_DONT_WAIT)
    {
      if (fcntl(fd,F_SETLK,&lock) != -1)	/* Check if we can lock */