VirtualBox

Changeset 4538 in vbox


Ignore:
Timestamp:
Sep 5, 2007 3:14:25 PM (17 years ago)
Author:
vboxsync
Message:

Made logbackdoor.cpp compile with a C compiler

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Runtime/VBox/logbackdoor.cpp

    r4071 r4538  
    3333{
    3434    va_list args;
     35    size_t cb;
    3536
    3637    va_start(args, pszFormat);
    37     size_t cb = RTLogBackdoorPrintfV(pszFormat, args);
     38    cb = RTLogBackdoorPrintfV(pszFormat, args);
    3839    va_end(args);
    3940
     
    6162RTDECL(void) RTLogWriteUser(const char *pch, size_t cb)
    6263{
    63     for (const uint8_t *pu8 = (const uint8_t *)pch; cb-- > 0; pu8++)
     64    const uint8_t *pu8;
     65    for (pu8 = (const uint8_t *)pch; cb-- > 0; pu8++)
    6466        ASMOutU8(RTLOG_DEBUG_PORT, *pu8);
    6567    /** @todo a rep outs could be more efficient, I don't know...
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