VirtualBox

Changeset 107721 in vbox


Ignore:
Timestamp:
Jan 13, 2025 7:18:55 PM (4 months ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
166823
Message:

src/VBox/Runtime/r3/ftp-server.cpp: Fixed warnings found by Parfait (unused assignment + unread variable). jiraref:VBP-1424

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Runtime/r3/ftp-server.cpp

    r106061 r107721  
    13181318
    13191319            if (RT_SUCCESS(rc))
     1320            {
    13201321                rc = rtFtpSetCWD(&pClient->State, pszPath);
     1322                if (RT_SUCCESS(rc))
     1323                    rc = rtFtpServerSendReplyRc(pClient, RTFTPSERVER_REPLY_OKAY);
     1324            }
    13211325
    13221326            RTStrFree(pszPath);
    13231327
    1324             rc = rtFtpServerSendReplyRc(pClient, RTFTPSERVER_REPLY_OKAY);
    13251328        }
    13261329        else
     
    14451448    int32_t offUtc = Time.offUTC;
    14461449    Assert(offUtc <= 840 && offUtc >= -840);
    1447     char     chSign;
    1448     if (offUtc >= 0)
    1449         chSign = '+';
    1450     else
    1451     {
    1452         chSign = '-';
     1450    if (offUtc < 0)
    14531451        offUtc = -offUtc;
    1454     }
    14551452    uint32_t offUtcHour   = (uint32_t)offUtc / 60;
    14561453    uint32_t offUtcMinute = (uint32_t)offUtc % 60;
     
    24302427            {
    24312428                AssertBreakStmt(cbRead <= sizeof(szCmd), rc = VERR_BUFFER_OVERFLOW);
    2432                 rc = rtFtpServerProcessCommands(pClient, szCmd, cbRead);
     2429                /* rc ignored, keep going */ rtFtpServerProcessCommands(pClient, szCmd, cbRead);
    24332430            }
    24342431        }
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