VirtualBox

Changeset 46326 in vbox


Ignore:
Timestamp:
May 30, 2013 12:16:53 PM (12 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
86097
Message:

RT_STR_TUPLE

Location:
trunk/src/VBox
Files:
26 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Additions/common/VBoxService/VBoxService.cpp

    r44872 r46326  
    861861                bool fFound = false;
    862862
    863                 if (cch > sizeof("enable-") && !memcmp(psz, "enable-", sizeof("enable-") - 1))
     863                if (cch > sizeof("enable-") && !memcmp(psz, RT_STR_TUPLE("enable-")))
    864864                    for (unsigned j = 0; !fFound && j < RT_ELEMENTS(g_aServices); j++)
    865865                        if ((fFound = !RTStrICmp(psz + sizeof("enable-") - 1, g_aServices[j].pDesc->pszName)))
    866866                            g_aServices[j].fEnabled = true;
    867867
    868                 if (cch > sizeof("disable-") && !memcmp(psz, "disable-", sizeof("disable-") - 1))
     868                if (cch > sizeof("disable-") && !memcmp(psz, RT_STR_TUPLE("disable-")))
    869869                    for (unsigned j = 0; !fFound && j < RT_ELEMENTS(g_aServices); j++)
    870870                        if ((fFound = !RTStrICmp(psz + sizeof("disable-") - 1, g_aServices[j].pDesc->pszName)))
    871871                            g_aServices[j].fEnabled = false;
    872872
    873                 if (cch > sizeof("only-") && !memcmp(psz, "only-", sizeof("only-") - 1))
     873                if (cch > sizeof("only-") && !memcmp(psz, RT_STR_TUPLE("only-")))
    874874                    for (unsigned j = 0; j < RT_ELEMENTS(g_aServices); j++)
    875875                    {
  • trunk/src/VBox/Devices/Network/DrvIntNet.cpp

    r44528 r46326  
    16611661    if (    !OpenReq.szTrunk[0]
    16621662        &&   OpenReq.enmTrunkType == kIntNetTrunkType_None
    1663         &&  !strncmp(pThis->szNetwork, "if=en", sizeof("if=en") - 1)
     1663        &&  !strncmp(pThis->szNetwork, RT_STR_TUPLE("if=en"))
    16641664        &&  RT_C_IS_DIGIT(pThis->szNetwork[sizeof("if=en") - 1])
    16651665        &&  !pThis->szNetwork[sizeof("if=en")])
     
    16711671    if (    !OpenReq.szTrunk[0]
    16721672        &&   OpenReq.enmTrunkType == kIntNetTrunkType_None
    1673         &&  !strncmp(pThis->szNetwork, "wif=en", sizeof("wif=en") - 1)
     1673        &&  !strncmp(pThis->szNetwork, RT_STR_TUPLE("wif=en"))
    16741674        &&  RT_C_IS_DIGIT(pThis->szNetwork[sizeof("wif=en") - 1])
    16751675        &&  !pThis->szNetwork[sizeof("wif=en")])
  • trunk/src/VBox/Devices/USB/linux/USBProxyDevice-linux.cpp

    r44528 r46326  
    477477
    478478                    /* Skip ahead to 'Bus' and compare */
    479                     psz = RTStrStripL(psz + 2); Assert(!strncmp(psz, "Bus=", 4));
     479                    psz = RTStrStripL(psz + 2); Assert(!strncmp(psz, RT_STR_TUPLE("Bus=")));
    480480                    psz = RTStrStripL(psz + 4);
    481481                    char *pszNext;
     
    625625     */
    626626#ifdef VBOX_USB_WITH_SYSFS
    627     fUsingSysfs = strncmp(pszAddress, "sysfs:", sizeof("sysfs:") - 1) == 0;
     627    fUsingSysfs = strncmp(pszAddress, RT_STR_TUPLE("sysfs:")) == 0;
    628628    if (fUsingSysfs)
    629629    {
     
    949949                 * "SerialNumber="
    950950                 */
    951                 if ( strncmp(psz, "SerialNumber=", sizeof("SerialNumber=") - 1) )
     951                if (strncmp(psz, RT_STR_TUPLE("SerialNumber=")))
    952952                    break;
    953953
  • trunk/src/VBox/HostDrivers/Support/SUPLib.cpp

    r44528 r46326  
    16731673    /** @todo is this actually used??? */
    16741674    /* skip the 64-bit ELF import prefix first. */
    1675     if (!strncmp(pszSymbol, "SUPR0$", sizeof("SUPR0$") - 1))
     1675    if (!strncmp(pszSymbol, RT_STR_TUPLE("SUPR0$")))
    16761676        pszSymbol += sizeof("SUPR0$") - 1;
    16771677
  • trunk/src/VBox/Main/src-client/ConsoleImpl2.cpp

    r45971 r46326  
    298298        szProdName[0] = '\0';
    299299        RTSystemQueryDmiString(RTSYSDMISTR_PRODUCT_NAME, szProdName, sizeof(szProdName));
    300         if (   (   !strncmp(szProdName, "Mac", 3)
    301                 || !strncmp(szProdName, "iMac", 4)
    302                 || !strncmp(szProdName, "iMac", 4)
    303                 || !strncmp(szProdName, "Xserve", 6)
     300        if (   (   !strncmp(szProdName, RT_STR_TUPLE("Mac"))
     301                || !strncmp(szProdName, RT_STR_TUPLE("iMac"))
     302                || !strncmp(szProdName, RT_STR_TUPLE("iMac"))
     303                || !strncmp(szProdName, RT_STR_TUPLE("Xserve"))
    304304               )
    305305            && !strchr(szProdName, ' ')                             /* no spaces */
     
    29332933
    29342934                /* check for type prefix first. */
    2935                 if (!strncmp(strCFGMValueUtf8.c_str(), "string:", sizeof("string:") - 1))
     2935                if (!strncmp(strCFGMValueUtf8.c_str(), RT_STR_TUPLE("string:")))
    29362936                    InsertConfigString(pNode, pszCFGMValueName, strCFGMValueUtf8.c_str() + sizeof("string:") - 1);
    2937                 else if (!strncmp(strCFGMValueUtf8.c_str(), "integer:", sizeof("integer:") - 1))
     2937                else if (!strncmp(strCFGMValueUtf8.c_str(), RT_STR_TUPLE("integer:")))
    29382938                {
    29392939                    rc = RTStrToUInt64Full(strCFGMValueUtf8.c_str() + sizeof("integer:") - 1, 0, &u64Value);
     
    29412941                        rc = CFGMR3InsertInteger(pNode, pszCFGMValueName, u64Value);
    29422942                }
    2943                 else if (!strncmp(strCFGMValueUtf8.c_str(), "bytes:", sizeof("bytes:") - 1))
     2943                else if (!strncmp(strCFGMValueUtf8.c_str(), RT_STR_TUPLE("bytes:")))
    29442944                {
    29452945                    char const *pszBase64 = strCFGMValueUtf8.c_str() + sizeof("bytes:") - 1;
     
    43494349                 * interface via the current FreeBSD vboxnetflt implementation.
    43504350                 */
    4351                 if (!strncmp(pszBridgedIfName, "tap", sizeof "tap" - 1)) {
     4351                if (!strncmp(pszBridgedIfName, RT_STR_TUPLE("tap"))) {
    43524352                    hrc = attachToTapInterface(aNetworkAdapter);
    43534353                    if (FAILED(hrc))
  • trunk/src/VBox/Main/src-client/ConsoleImplTeleporter.cpp

    r44528 r46326  
    240240        return S_OK;
    241241
    242     if (!strncmp(szMsg, "NACK=", sizeof("NACK=") - 1))
     242    if (!strncmp(szMsg, RT_STR_TUPLE("NACK=")))
    243243    {
    244244        char *pszMsgText = strchr(szMsg, ';');
  • trunk/src/VBox/Main/src-helper-apps/VBoxExtPackHelperApp.cpp

    r42708 r46326  
    10881088            if (   pszMarker
    10891089                && (   !strcmp(pszMarker, "-_-uninst")
    1090                     || !strncmp(pszMarker, "-_-inst", sizeof("-_-inst") - 1)))
     1090                    || !strncmp(pszMarker, RT_STR_TUPLE("-_-inst"))))
    10911091                fCandidate = VBoxExtPackIsValidMangledName(Entry.szName, pszMarker - &Entry.szName[0]);
    10921092            if (fCandidate)
  • trunk/src/VBox/Main/src-server/HostImpl.cpp

    r45367 r46326  
    22782278                                char *pszSlice = solarisGetSliceFromPath(pszDevLinkPath);
    22792279                                if (   pszSlice && !strcmp(pszSlice, "s2")
    2280                                     && !strncmp(pszDevLinkPath, "/dev/rdsk", sizeof("/dev/rdsk") - 1))   /* We want only raw disks */
     2280                                    && !strncmp(pszDevLinkPath, RT_STR_TUPLE("/dev/rdsk")))   /* We want only raw disks */
    22812281                                {
    22822282                                    /*
     
    27302730                // skip devices we are not interested in
    27312731                if ((*mountName && mountName[0] == '/') &&                      // skip 'fake' devices (like -hosts, proc, fd, swap)
    2732                     (*mountFSType && (strncmp(mountFSType, "devfs", 5) != 0 &&  // skip devfs (i.e. /devices)
    2733                                       strncmp(mountFSType, "dev", 3) != 0 &&    // skip dev (i.e. /dev)
    2734                                       strncmp(mountFSType, "lofs", 4) != 0)))   // skip loop-back file-system (lofs)
     2732                    (*mountFSType && (strncmp(mountFSType, RT_STR_TUPLE("devfs")) != 0 &&  // skip devfs (i.e. /devices)
     2733                                      strncmp(mountFSType, RT_STR_TUPLE("dev")) != 0 &&    // skip dev (i.e. /dev)
     2734                                      strncmp(mountFSType, RT_STR_TUPLE("lofs")) != 0)))   // skip loop-back file-system (lofs)
    27352735                {
    27362736                    char *rawDevName = getfullrawname((char *)mountName);
  • trunk/src/VBox/Main/src-server/linux/USBGetDevices.cpp

    r45367 r46326  
    358358    pszValue = RTStrStripL(pszValue);
    359359    /* verified with Linux 2.4.0 ... Linux 2.6.25 */
    360     if (!strncmp(pszValue, "1.5", 3))
     360    if (!strncmp(pszValue, RT_STR_TUPLE("1.5")))
    361361        *pSpd = USBDEVICESPEED_LOW;
    362     else if (!strncmp(pszValue, "12 ", 3))
     362    else if (!strncmp(pszValue, RT_STR_TUPLE("12 ")))
    363363        *pSpd = USBDEVICESPEED_FULL;
    364     else if (!strncmp(pszValue, "480", 3))
     364    else if (!strncmp(pszValue, RT_STR_TUPLE("480")))
    365365        *pSpd = USBDEVICESPEED_HIGH;
    366366    else
     
    11231123    {
    11241124        /* No -/. so it must be a root hub. Check that it's usb<something>. */
    1125         if (strncmp(pszLastComp, "usb", sizeof("usb") - 1) != 0)
     1125        if (strncmp(pszLastComp, RT_STR_TUPLE("usb")) != 0)
    11261126        {
    11271127            Log(("usbGetPortFromSysfsPath(%s): failed [2]\n", pszPath));
  • trunk/src/VBox/Main/testcase/tstAPI.cpp

    r43445 r46326  
    11581158#endif
    11591159
    1160 #if 0
     1160#if 1
    11611161    do {
    11621162        // Get host
  • trunk/src/VBox/Main/webservice/split-soapC.cpp

    r44529 r46326  
    140140
    141141            /* process nesting depth information */
    142             if (!strncmp(pLine, "#if", 3))
     142            if (!strncmp(pLine, RT_STR_TUPLE("#if")))
    143143                cIfNesting++;
    144             else if (!strncmp(pLine, "#endif", 6))
     144            else if (!strncmp(pLine, RT_STR_TUPLE("#endif")))
    145145            {
    146146                cIfNesting--;
     
    164164
    165165            /* look for static variables used for enum conversion. */
    166             if (!strncmp(pLine, "static const struct soap_code_map", sizeof("static const struct soap_code_map") - 1))
     166            if (!strncmp(pLine, RT_STR_TUPLE("static const struct soap_code_map")))
    167167                cLinesSinceStaticMap = 0;
    168168            else
  • trunk/src/VBox/Runtime/common/string/strformatrt.cpp

    r45236 r46326  
    559559                        const char *psz = pszLastSep = va_arg(*pArgs, const char *);
    560560                        if (!VALID_PTR(psz))
    561                             return pfnOutput(pvArgOutput, "<null>", sizeof("<null>") - 1);
     561                            return pfnOutput(pvArgOutput, RT_STR_TUPLE("<null>"));
    562562
    563563                        while ((ch = *psz) != '\0')
     
    603603                        const char *psz = pszStart = va_arg(*pArgs, const char *);
    604604                        if (!VALID_PTR(psz))
    605                             return pfnOutput(pvArgOutput, "<null>", sizeof("<null>") - 1);
     605                            return pfnOutput(pvArgOutput, RT_STR_TUPLE("<null>"));
    606606
    607607                        while ((ch = *psz) != '\0' && ch != '(')
     
    708708                        }
    709709                        else
    710                             return pfnOutput(pvArgOutput, "<null>", sizeof("<null>") - 1);
     710                            return pfnOutput(pvArgOutput, RT_STR_TUPLE("<null>"));
    711711                        break;
    712712                    }
     
    904904                 */
    905905                if ((s_aTypes[i].fFlags & RTST_FLAGS_POINTER) && !VALID_PTR(u.pv))
    906                     return pfnOutput(pvArgOutput, "<null>", sizeof("<null>") - 1);
     906                    return pfnOutput(pvArgOutput, RT_STR_TUPLE("<null>"));
    907907
    908908                /*
  • trunk/src/VBox/Runtime/common/string/strformattype.cpp

    r44529 r46326  
    467467        rtstrFormatTypeReadUnlock();
    468468
    469         cch  = pfnOutput(pvArgOutput, "<missing:%R[", sizeof("<missing:%R[") - 1);
     469        cch  = pfnOutput(pvArgOutput, RT_STR_TUPLE("<missing:%R["));
    470470        cch += pfnOutput(pvArgOutput, pszType, pszTypeEnd - pszType);
    471         cch += pfnOutput(pvArgOutput, "]>", sizeof("]>") - 1);
     471        cch += pfnOutput(pvArgOutput, RT_STR_TUPLE("]>"));
    472472    }
    473473
  • trunk/src/VBox/Runtime/r3/linux/mp-linux.cpp

    r46144 r46326  
    8383    {
    8484        char *psz;
    85         if (   !strncmp(sz, "processor", 9)
     85        if (   !strncmp(sz, RT_STR_TUPLE("processor"))
    8686            && (sz[10] == ' ' || sz[10] == '\t' || sz[10] == ':')
    8787            && (psz = strchr(sz, ':')))
     
    9494        }
    9595        else if (   idCpu == idCpuFound
    96                  && !strncmp(sz, "cpu MHz", 7)
     96                 && !strncmp(sz, RT_STR_TUPLE("cpu MHz"))
    9797                 && (sz[10] == ' ' || sz[10] == '\t' || sz[10] == ':')
    9898                 && (psz = strchr(sz, ':')))
  • trunk/src/VBox/Runtime/testcase/tstLdr-4.cpp

    r44528 r46326  
    126126    for (i = 0; i < RT_ELEMENTS(aLoads); i++)
    127127    {
    128         if (!strncmp(aLoads[i].pszName, "kLdr-", sizeof("kLdr-") - 1))
     128        if (!strncmp(aLoads[i].pszName, RT_STR_TUPLE("kLdr-")))
    129129            rc = RTLdrOpenkLdr(pszFilename, 0, RTLDRARCH_WHATEVER, &aLoads[i].hLdrMod);
    130130        else
  • trunk/src/VBox/Runtime/testcase/tstLdr.cpp

    r44528 r46326  
    122122        /* open it */
    123123        int rc;
    124         if (!strncmp(aLoads[i].pszName, "kLdr-", sizeof("kLdr-") - 1))
     124        if (!strncmp(aLoads[i].pszName, RT_STR_TUPLE("kLdr-")))
    125125            rc = RTLdrOpenkLdr(pszFilename, 0, RTLDRARCH_WHATEVER, &aLoads[i].hLdrMod);
    126126        else
  • trunk/src/VBox/Runtime/testcase/tstR0ThreadPreemptionDriver.cpp

    r45542 r46326  
    147147    if (RT_FAILURE(rc))
    148148        return RTTestSummaryAndDestroy(hTest);
    149     RTTESTI_CHECK_MSG(!strncmp(Req.szMsg, "!42failure42", sizeof("!42failure42") - 1), ("%s", Req.szMsg));
    150     if (strncmp(Req.szMsg, "!42failure42", sizeof("!42failure42") - 1))
     149    RTTESTI_CHECK_MSG(!strncmp(Req.szMsg, RT_STR_TUPLE("!42failure42")), ("%s", Req.szMsg));
     150    if (strncmp(Req.szMsg, RT_STR_TUPLE("!42failure42")))
    151151        return RTTestSummaryAndDestroy(hTest);
    152152
  • trunk/src/VBox/Runtime/testcase/tstRTR0DbgKrnlInfoDriver.cpp

    r41947 r46326  
    121121    if (RT_FAILURE(rc))
    122122        return RTTestSummaryAndDestroy(hTest);
    123     RTTESTI_CHECK_MSG(!strncmp(Req.szMsg, "!42failure42", sizeof("!42failure42") - 1), ("%s", Req.szMsg));
    124     if (strncmp(Req.szMsg, "!42failure42", sizeof("!42failure42") - 1))
     123    RTTESTI_CHECK_MSG(!strncmp(Req.szMsg, RT_STR_TUPLE("!42failure42")), ("%s", Req.szMsg));
     124    if (strncmp(Req.szMsg, RT_STR_TUPLE("!42failure42")))
    125125        return RTTestSummaryAndDestroy(hTest);
    126126
  • trunk/src/VBox/Runtime/testcase/tstRTR0MemUserKernelDriver.cpp

    r44529 r46326  
    122122    if (RT_FAILURE(rc))
    123123        return RTTestSummaryAndDestroy(hTest);
    124     RTTESTI_CHECK_MSG(!strncmp(Req.szMsg, "!42failure42", sizeof("!42failure42") - 1), ("%s", Req.szMsg));
    125     if (strncmp(Req.szMsg, "!42failure42", sizeof("!42failure42") - 1))
     124    RTTESTI_CHECK_MSG(!strncmp(Req.szMsg, RT_STR_TUPLE("!42failure42")), ("%s", Req.szMsg));
     125    if (strncmp(Req.szMsg, RT_STR_TUPLE("!42failure42")))
    126126        return RTTestSummaryAndDestroy(hTest);
    127127
  • trunk/src/VBox/Runtime/testcase/tstRTR0SemMutexDriver.cpp

    r44528 r46326  
    238238    if (RT_FAILURE(rc))
    239239        return RTTestSummaryAndDestroy(hTest);
    240     RTTESTI_CHECK_MSG(!strncmp(Req.szMsg, "!42failure42", sizeof("!42failure42") - 1), ("%s", Req.szMsg));
    241     if (strncmp(Req.szMsg, "!42failure42", sizeof("!42failure42") - 1))
     240    RTTESTI_CHECK_MSG(!strncmp(Req.szMsg, RT_STR_TUPLE("!42failure42")), ("%s", Req.szMsg));
     241    if (strncmp(Req.szMsg, RT_STR_TUPLE("!42failure42")))
    242242        return RTTestSummaryAndDestroy(hTest);
    243243
  • trunk/src/VBox/VMM/VMMAll/PGMAll.cpp

    r46125 r46326  
    26592659    }
    26602660    else
    2661         cch = pfnOutput(pvArgOutput, "<bad-pgmpage-ptr>", sizeof("<bad-pgmpage-ptr>") - 1);
     2661        cch = pfnOutput(pvArgOutput, RT_STR_TUPLE("<bad-pgmpage-ptr>"));
    26622662    NOREF(pszType); NOREF(cchWidth); NOREF(pvUser);
    26632663    return cch;
     
    26812681    }
    26822682    else
    2683         cch = pfnOutput(pvArgOutput, "<bad-pgmramrange-ptr>", sizeof("<bad-pgmramrange-ptr>") - 1);
     2683        cch = pfnOutput(pvArgOutput, RT_STR_TUPLE("<bad-pgmramrange-ptr>"));
    26842684    NOREF(pszType); NOREF(cchWidth); NOREF(cchPrecision); NOREF(pvUser); NOREF(fFlags);
    26852685    return cch;
  • trunk/src/VBox/VMM/VMMAll/VMMAll.cpp

    r45749 r46326  
    9494    }
    9595    if (cCpus == 0)
    96         return pfnOutput(pvArgOutput, "<empty>", sizeof("<empty>") - 1);
     96        return pfnOutput(pvArgOutput, RT_STR_TUPLE("<empty>"));
    9797    if (cCpus == RT_ELEMENTS(pSet->au32Bitmap) * 32)
    98         return pfnOutput(pvArgOutput, "<full>", sizeof("<full>") - 1);
     98        return pfnOutput(pvArgOutput, RT_STR_TUPLE("<full>"));
    9999
    100100    /*
  • trunk/src/VBox/VMM/VMMR0/GVMMR0.cpp

    r44528 r46326  
    545545     * String switch time!
    546546     */
    547     if (strncmp(pszName, "/GVMM/", sizeof("/GVMM/") - 1))
     547    if (strncmp(pszName, RT_STR_TUPLE("/GVMM/")))
    548548        return VERR_CFGM_VALUE_NOT_FOUND; /* borrow status codes from CFGM... */
    549549    int rc = VINF_SUCCESS;
     
    613613     * String switch time!
    614614     */
    615     if (strncmp(pszName, "/GVMM/", sizeof("/GVMM/") - 1))
     615    if (strncmp(pszName, RT_STR_TUPLE("/GVMM/")))
    616616        return VERR_CFGM_VALUE_NOT_FOUND; /* borrow status codes from CFGM... */
    617617    int rc = VINF_SUCCESS;
  • trunk/src/VBox/VMM/VMMR3/CPUM.cpp

    r46165 r46326  
    30263026    else
    30273027    {
    3028         if (!strncmp(pszArgs, "verbose", sizeof("verbose") - 1))
     3028        if (!strncmp(pszArgs, RT_STR_TUPLE("verbose")))
    30293029        {
    30303030            pszArgs += 7;
    30313031            *penmType = CPUMDUMPTYPE_VERBOSE;
    30323032        }
    3033         else if (!strncmp(pszArgs, "terse", sizeof("terse") - 1))
     3033        else if (!strncmp(pszArgs, RT_STR_TUPLE("terse")))
    30343034        {
    30353035            pszArgs += 5;
    30363036            *penmType = CPUMDUMPTYPE_TERSE;
    30373037        }
    3038         else if (!strncmp(pszArgs, "default", sizeof("default") - 1))
     3038        else if (!strncmp(pszArgs, RT_STR_TUPLE("default")))
    30393039        {
    30403040            pszArgs += 7;
  • trunk/src/VBox/VMM/VMMR3/DBGFLog.cpp

    r44528 r46326  
    4242    PRTLOGGER   pLogger;
    4343    const char *psz = *ppsz;
    44     if (!strncmp(psz, "release:", sizeof("release:") - 1))
     44    if (!strncmp(psz, RT_STR_TUPLE("release:")))
    4545    {
    4646        *ppsz += sizeof("release:") - 1;
     
    4949    else
    5050    {
    51         if (!strncmp(psz, "debug:", sizeof("debug:") - 1))
     51        if (!strncmp(psz, RT_STR_TUPLE("debug:")))
    5252            *ppsz += sizeof("debug:") - 1;
    5353        pLogger = RTLogDefaultInstance();
  • trunk/src/VBox/VMM/VMMR3/FTM.cpp

    r44529 r46326  
    198198static int ftmR3TcpWriteACK(PVM pVM)
    199199{
    200     int rc = RTTcpWrite(pVM->ftm.s.hSocket, "ACK\n", sizeof("ACK\n") - 1);
     200    int rc = RTTcpWrite(pVM->ftm.s.hSocket, RT_STR_TUPLE("ACK\n"));
    201201    if (RT_FAILURE(rc))
    202202    {
     
    286286        return VINF_SUCCESS;
    287287
    288     if (!strncmp(szMsg, "NACK=", sizeof("NACK=") - 1))
     288    if (!strncmp(szMsg, RT_STR_TUPLE("NACK=")))
    289289    {
    290290        char *pszMsgText = strchr(szMsg, ';');
     
    334334static int ftmR3TcpSubmitCommand(PVM pVM, const char *pszCommand, bool fWaitForAck = true)
    335335{
    336     int rc = RTTcpSgWriteL(pVM->ftm.s.hSocket, 2, pszCommand, strlen(pszCommand), "\n", sizeof("\n") - 1);
     336    int rc = RTTcpSgWriteL(pVM->ftm.s.hSocket, 2, pszCommand, strlen(pszCommand), RT_STR_TUPLE("\n"));
    337337    if (RT_FAILURE(rc))
    338338        return rc;
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