VirtualBox

Changeset 14050 in vbox for trunk/include/iprt


Ignore:
Timestamp:
Nov 10, 2008 10:48:21 PM (16 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
39106
Message:

iprt: RTPath - lenths are size_t not unsigned.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/iprt/path.h

    r11836 r14050  
    234234/**
    235235 * Parses a path.
    236  * 
    237  * It figures the length of the directory component, the offset of 
     236 *
     237 * It figures the length of the directory component, the offset of
    238238 * the file name and the location of the suffix dot.
    239239 *
    240240 * @returns The path length.
    241  * 
     241 *
    242242 * @param   pszPath     Path to find filename in.
    243243 * @param   pcbDir      Where to put the length of the directory component.
     
    249249 *                      If empty string or if it's ending with a slash this
    250250 *                      will be set to -1. Optional.
    251  * @param   pfFlags     Where to set flags returning more information about 
     251 * @param   pfFlags     Where to set flags returning more information about
    252252 *                      the path. For the future. Optional.
    253253 */
     
    358358 * @param   cchPath     Buffer size in bytes.
    359359 */
    360 RTDECL(int) RTPathUserHome(char *pszPath, unsigned cchPath);
     360RTDECL(int) RTPathUserHome(char *pszPath, size_t cchPath);
    361361
    362362/**
     
    373373 * @param   cchPath     Buffer size in bytes.
    374374 */
    375 RTDECL(int) RTPathSharedLibs(char *pszPath, unsigned cchPath);
     375RTDECL(int) RTPathSharedLibs(char *pszPath, size_t cchPath);
    376376
    377377/**
     
    387387 * @param   cchPath     Buffer size in bytes.
    388388 */
    389 RTDECL(int) RTPathAppPrivateNoArch(char *pszPath, unsigned cchPath);
     389RTDECL(int) RTPathAppPrivateNoArch(char *pszPath, size_t cchPath);
    390390
    391391/**
     
    401401 * @param   cchPath     Buffer size in bytes.
    402402 */
    403 RTDECL(int) RTPathAppPrivateArch(char *pszPath, unsigned cchPath);
     403RTDECL(int) RTPathAppPrivateArch(char *pszPath, size_t cchPath);
    404404
    405405/**
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