VirtualBox

Changeset 42072 in vbox for trunk/src/VBox/Runtime/common


Ignore:
Timestamp:
Jul 10, 2012 7:39:22 AM (12 years ago)
Author:
vboxsync
Message:

strtonum.cpp: C90 warnings.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Runtime/common/string/strtonum.cpp

    r40938 r42072  
    972972RTDECL(int) RTStrConvertHexBytes(char const *pszHex, void *pv, size_t cb, uint32_t fFlags)
    973973{
     974    size_t      cbDst;
     975    uint8_t    *pbDst;
     976    const char *pszSrc;
     977
    974978    AssertPtrReturn(pszHex, VERR_INVALID_POINTER);
    975979    AssertReturn(!fFlags, VERR_INVALID_PARAMETER);
    976980
    977     size_t      cbDst   = cb;
    978     uint8_t    *pbDst   = (uint8_t *)pv;
    979     const char *pszSrc = pszHex;
     981    cbDst  = cb;
     982    pbDst  = (uint8_t *)pv;
     983    pszSrc = pszHex;
    980984    for (;;)
    981985    {
     
    983987        char ch = *pszSrc++;
    984988        unsigned char uchDigit1 = g_auchDigits[(unsigned char)ch];
     989        unsigned char uchDigit2;
    985990        if (uchDigit1 >= 16)
    986991        {
     
    994999
    9951000        ch = *pszSrc++;
    996         unsigned char uchDigit2 = g_auchDigits[(unsigned char)ch];
     1001        uchDigit2 = g_auchDigits[(unsigned char)ch];
    9971002        if (uchDigit2 >= 16)
    9981003            return VERR_UNEVEN_INPUT;
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