VirtualBox

Changeset 14050 in vbox


Ignore:
Timestamp:
Nov 10, 2008 10:48:21 PM (16 years ago)
Author:
vboxsync
Message:

iprt: RTPath - lenths are size_t not unsigned.

Location:
trunk
Files:
4 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/**
  • trunk/src/VBox/Runtime/r3/path.cpp

    r11839 r14050  
    123123/**
    124124 * Parses a path.
    125  * 
    126  * It figures the length of the directory component, the offset of 
     125 *
     126 * It figures the length of the directory component, the offset of
    127127 * the file name and the location of the suffix dot.
    128128 *
    129129 * @returns The path length.
    130  * 
     130 *
    131131 * @param   pszPath     Path to find filename in.
    132132 * @param   pcbDir      Where to put the length of the directory component.
     
    138138 *                      If empty string or if it's ending with a slash this
    139139 *                      will be set to -1. Optional.
    140  * @param   pfFlags     Where to set flags returning more information about 
     140 * @param   pfFlags     Where to set flags returning more information about
    141141 *                      the path. For the future. Optional.
    142142 */
     
    169169                break;
    170170
    171             /* 
     171            /*
    172172             * The end. Complete the results.
    173173             */
     
    648648#ifndef RT_MINI
    649649
    650 RTDECL(int) RTPathProgram(char *pszPath, unsigned cchPath)
     650RTDECL(int) RTPathProgram(char *pszPath, size_t cchPath)
    651651{
    652652    AssertReturn(g_szrtProcExePath[0], VERR_WRONG_ORDER);
     
    677677 *
    678678 */
    679 RTDECL(int) RTPathAppPrivateNoArch(char *pszPath, unsigned cchPath)
     679RTDECL(int) RTPathAppPrivateNoArch(char *pszPath, size_t cchPath)
    680680{
    681681#if !defined(RT_OS_WINDOWS) && defined(RTPATH_APP_PRIVATE)
     
    711711 * @param   cchPath     Buffer size in bytes.
    712712 */
    713 RTDECL(int) RTPathAppPrivateArch(char *pszPath, unsigned cchPath)
     713RTDECL(int) RTPathAppPrivateArch(char *pszPath, size_t cchPath)
    714714{
    715715#if !defined(RT_OS_WINDOWS) && defined(RTPATH_APP_PRIVATE_ARCH)
     
    746746 * @param   cchPath     Buffer size in bytes.
    747747 */
    748 RTDECL(int) RTPathSharedLibs(char *pszPath, unsigned cchPath)
     748RTDECL(int) RTPathSharedLibs(char *pszPath, size_t cchPath)
    749749{
    750750#if !defined(RT_OS_WINDOWS) && defined(RTPATH_SHARED_LIBS)
  • trunk/src/VBox/Runtime/r3/posix/path-posix.cpp

    r11836 r14050  
    502502
    503503
    504 RTDECL(int) RTPathUserHome(char *pszPath, unsigned cchPath)
     504RTDECL(int) RTPathUserHome(char *pszPath, size_t cchPath)
    505505{
    506506    int rc;
  • trunk/src/VBox/Runtime/r3/win/path-win.cpp

    r13837 r14050  
    130130 * @param   cchPath     Buffer size in bytes.
    131131 */
    132 RTDECL(int) RTPathUserHome(char *pszPath, unsigned cchPath)
     132RTDECL(int) RTPathUserHome(char *pszPath, size_t cchPath)
    133133{
    134134    RTUTF16 wszPath[RTPATH_MAX];
Note: See TracChangeset for help on using the changeset viewer.

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