~ubuntu-branches/ubuntu/precise/open-vm-tools/precise

« back to all changes in this revision

Viewing changes to lib/region/region.c

  • Committer: Bazaar Package Importer
  • Author(s): Serge Hallyn
  • Date: 2011-03-31 14:20:05 UTC
  • mfrom: (1.4.3 upstream)
  • Revision ID: james.westby@ubuntu.com-20110331142005-3n9red91p7ogkweo
Tags: 2011.03.28-387002-0ubuntu1
* Merge latest upstream git tag.  This has the unlocked_ioctl change
  needed to fix dkms build failures (LP: #727342)
* Changes in debian/rules:
  - work around a bug in toolbox/Makefile, where install-exec-hook is
    not happening.  This needs to get fixed the right way.
  - don't install 'vmware-user' which seems to no longer exist
  - move /etc/xdg into open-vm-toolbox (which should be done using .install)
* debian/open-vm-tools.init: add 'modprobe [-r] vmblock'. (LP: #332323)
* debian/rules and debian/open-vm-toolbox.lintian-overrides:
  - Make vmware-user-suid-wrapper suid-root (LP: #332323)

Show diffs side-by-side

added added

removed removed

Lines of Context:
871
871
    register BoxPtr     pNextRect;
872
872
    register int        newRects;
873
873
 
874
 
    newRects = rEnd - r;
 
874
    newRects = (int) (rEnd - r);
875
875
 
876
876
    ASSERT(y1 < y2);
877
877
    ASSERT(newRects != 0);
903
903
#define AppendRegions(newReg, r, rEnd)                                  \
904
904
{                                                                       \
905
905
    int newRects;                                                       \
906
 
    if ((newRects = rEnd - r)) {                                        \
 
906
    if ((newRects = (int) (rEnd - r))) {                                \
907
907
        RECTALLOC(newReg, newRects);                                    \
908
908
        memmove((char *)REGION_TOP(newReg),(char *)r,                   \
909
909
              newRects * sizeof(BoxRec));                               \
1445
1445
    ASSERT (y1 < y2);
1446
1446
    ASSERT(r1 != r1End && r2 != r2End);
1447
1447
 
1448
 
    miRegionInit(&subReg, NULL, r1End - r1);
1449
 
    miRegionInit(&tmpReg, NULL, r1End - r1);
 
1448
    miRegionInit(&subReg, NULL, (int) (r1End - r1));
 
1449
    miRegionInit(&tmpReg, NULL, (int) (r1End - r1));
1450
1450
 
1451
1451
    pNextRectTmp = REGION_BOXPTR((&tmpReg));
1452
1452
 
2068
2068
    if (pBox != (BoxPtr) (pData + 1))
2069
2069
    {
2070
2070
        pData->size = nrects;
2071
 
        pData->numRects = pBox - (BoxPtr) (pData + 1);
 
2071
        pData->numRects = (int) (pBox - (BoxPtr) (pData + 1));
2072
2072
        pRgn->data = pData;
2073
2073
        if (ctype != CT_YXBANDED)
2074
2074
        {
2924
2924
            }
2925
2925
        }
2926
2926
    }
2927
 
    return (pwidthNew - pwidthNewStart);
 
2927
    return (int) (pwidthNew - pwidthNewStart);
2928
2928
}
2929
2929
 
2930
2930
/* find the band in a region with the most rectangles */