VirtualBox

Changeset 104010 in vbox for trunk/src/VBox/ValidationKit


Ignore:
Timestamp:
Mar 23, 2024 1:24:05 AM (12 months ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
162398
Message:

*: Fixed various calloc argument order warnings from gcc 14.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/ValidationKit/bootsectors/bs3kit/VBoxBs3ObjConverter.cpp

    r98103 r104010  
    371371static POMFWRITER omfWriter_Create(const char *pszSrc, uint32_t cSegments, uint32_t cSymbols, FILE *pDst)
    372372{
    373     POMFWRITER pThis = (POMFWRITER)calloc(sizeof(OMFWRITER), 1);
     373    POMFWRITER pThis = (POMFWRITER)calloc(1, sizeof(OMFWRITER));
    374374    if (pThis)
    375375    {
     
    377377        pThis->idxNextName   = 1;       /* We start counting at 1. */
    378378        pThis->cSegments     = cSegments;
    379         pThis->paSegments    = (POMFTOSEGDEF)calloc(sizeof(OMFTOSEGDEF), cSegments);
     379        pThis->paSegments    = (POMFTOSEGDEF)calloc(cSegments, sizeof(OMFTOSEGDEF));
    380380        if (pThis->paSegments)
    381381        {
    382382            pThis->cSymbols  = cSymbols;
    383             pThis->paSymbols = (POMFSYMBOL)calloc(sizeof(OMFSYMBOL), cSymbols);
     383            pThis->paSymbols = (POMFSYMBOL)calloc(cSymbols, sizeof(OMFSYMBOL));
    384384            if (pThis->paSymbols)
    385385            {
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