Ignore:
Timestamp:
Aug 27, 2007, 9:54:05 PM (18 years ago)
Author:
bird
Message:

Use the new type system.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/kStuff/kLdr/kLdrHlp.c

    r3537 r3567  
    5454 * @param   cchVal      The size of the buffer pointed to by pszVal.
    5555 */
    56 int     kldrHlpGetEnv(const char *pszVar, char *pszVal, size_t cchVal)
     56int     kldrHlpGetEnv(const char *pszVar, char *pszVal, KSIZE cchVal)
    5757{
    5858#ifdef __OS2__
     
    6464    if (!rc)
    6565    {
    66         size_t cch = kLdrHlpStrLen((const char *)pszValue);
     66        KSIZE cch = kLdrHlpStrLen((const char *)pszValue);
    6767        if (cchVal > cch)
    6868            kLdrHlpMemCopy(pszVal, pszValue, cch + 1);
     
    9696
    9797/**
    98  * Gets an environment variable and converts it to a size_t.
     98 * Gets an environment variable and converts it to a KSIZE.
    9999 *
    100100 * @returns 0 and *pcb on success.
     
    103103 * @param   pcb     Where to put the value.
    104104 */
    105 int     kldrHlpGetEnvUZ(const char *pszVar, size_t *pcb)
    106 {
    107     size_t      cb;
     105int     kldrHlpGetEnvUZ(const char *pszVar, KSIZE *pcb)
     106{
     107    KSIZE       cb;
    108108    unsigned    uBase;
    109109    char        szVal[64];
    110     size_t      cchVal = sizeof(szVal);
     110    KSIZE       cchVal = sizeof(szVal);
    111111    const char *psz;
    112112    int         rc;
Note: See TracChangeset for help on using the changeset viewer.