VirtualBox

Changeset 40641 in vbox


Ignore:
Timestamp:
Mar 26, 2012 1:11:32 PM (13 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
77070
Message:

VBoxTpG: bool vs const char * returns spotted by gcc 4.7 & Frank.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/bldprogs/VBoxTpG.cpp

    r40636 r40641  
    10421042{
    10431043    /* Check stream state. */
    1044     AssertReturn(!pStream->fWriteOrRead, false);
    1045     AssertReturn(RT_SUCCESS(pStream->rc), false);
    1046     AssertReturn(pStream->fFullyLineated, false);
     1044    AssertReturn(!pStream->fWriteOrRead, NULL);
     1045    AssertReturn(RT_SUCCESS(pStream->rc), NULL);
     1046    AssertReturn(pStream->fFullyLineated, NULL);
    10471047
    10481048    /* Get the number of chars left on the line and locate the current char. */
     
    10811081{
    10821082    /* Check stream state. */
    1083     AssertReturn(!pStream->fWriteOrRead, false);
    1084     AssertReturn(RT_SUCCESS(pStream->rc), false);
    1085     AssertReturn(pStream->fFullyLineated, false);
     1083    AssertReturn(!pStream->fWriteOrRead, NULL);
     1084    AssertReturn(RT_SUCCESS(pStream->rc), NULL);
     1085    AssertReturn(pStream->fFullyLineated, NULL);
    10861086
    10871087    /* Get the number of chars left on the line and locate the current char. */
     
    15171517
    15181518/**
    1519  * Unmangles the probe name. 
    1520  * 
     1519 * Unmangles the probe name.
     1520 *
    15211521 * This involves translating double underscore to dash.
    1522  * 
     1522 *
    15231523 * @returns Pointer to the unmangled name in the string table.
    15241524 * @param   pszMangled          The mangled name.
     
    15821582    if (!pProbe->pszUnmangledName)
    15831583        return parseError(pStrm, 0, "Out of memory");
    1584    
     1584
    15851585    /*
    15861586     * Parse loop for the argument.
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