VirtualBox

Changeset 23071 in vbox


Ignore:
Timestamp:
Sep 16, 2009 3:31:51 PM (16 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
52407
Message:

VBoxFUSE.cpp: nitpicking.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/ImageMounter/VBoxFUSE/VBoxFUSE.cpp

    r23052 r23071  
    3838# ifdef EBADMACHO
    3939#  define EDOOFUS EBADMACHO
     40# elif defined(RT_OS_LINUX)
     41#  define EDOOFUS   0x0fad8484d
    4042//# elif defined(EXYZ)
    4143//#  define EDOOFUS EXYZ
    4244# else
    43 define EDOOFUS 0xfad8484d
     45error "Choose an unlikely and (if possible) fun error number for EDOOFUS."
    4446# endif
    4547#endif
     
    11611163    AssertReturn((unsigned)cbBuf == cbBuf, -EINVAL);
    11621164    AssertReturn(offFile >= 0, -EINVAL);
    1163     AssertReturn(offFile + (ssize_t)cbBuf >= offFile, -EINVAL);
     1165    AssertReturn((off_t)(offFile + cbBuf) >= offFile, -EINVAL);
    11641166
    11651167    PVBOXFUSENODE pNode = (PVBOXFUSENODE)(uintptr_t)pInfo->fh;
     
    11771179
    11781180            int rc;
    1179             if (offFile + (ssize_t)cbBuf < offFile)
     1181            if ((off_t)(offFile + cbBuf) < offFile)
    11801182                rc = -EINVAL;
    11811183            else if (offFile >= pFlatImage->Node.cbPrimary)
     
    11861188            {
    11871189                /* Adjust for EOF. */
    1188                 if (offFile + (ssize_t)cbBuf >= pFlatImage->Node.cbPrimary)
     1190                if ((off_t)(offFile + cbBuf) >= pFlatImage->Node.cbPrimary)
    11891191                    cbBuf = pFlatImage->Node.cbPrimary - offFile;
    11901192
Note: See TracChangeset for help on using the changeset viewer.

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette