Author: avg
Date: Thu May 12 12:18:01 2011
New Revision: 221809
URL: http://svn.freebsd.org/changeset/base/221809

Log:
  fix build on 32-bit platforms for r221803
  
  Casting a pointer to a wide integer is probably not that bad, but I am
  still guilty of not testing this.
  
  Pointyhat to: avg
  MFC after:    1 week
  X-MFC with:   r221803

Modified:
  head/sys/dev/sound/pcm/dsp.c

Modified: head/sys/dev/sound/pcm/dsp.c
==============================================================================
--- head/sys/dev/sound/pcm/dsp.c        Thu May 12 10:56:33 2011        
(r221808)
+++ head/sys/dev/sound/pcm/dsp.c        Thu May 12 12:18:01 2011        
(r221809)
@@ -2255,7 +2255,7 @@ dsp_mmap_single(struct cdev *i_dev, vm_o
        if (rdch != NULL)
                rdch->flags |= CHN_F_MMAP;
 
-       *offset = (vm_ooffset_t)sndbuf_getbufofs(c->bufsoft, *offset);
+       *offset = (uintptr_t)sndbuf_getbufofs(c->bufsoft, *offset);
        relchns(i_dev, rdch, wrch, SD_F_PRIO_RD | SD_F_PRIO_WR);
        *object = vm_pager_allocate(OBJT_DEVICE, i_dev,
            size, nprot, *offset, curthread->td_ucred);
_______________________________________________
svn-src-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"

Reply via email to