VirtualBox

Changeset 1329 in kBuild


Ignore:
Timestamp:
Dec 2, 2007 8:49:33 PM (17 years ago)
Author:
bird
Message:

fixed a few warnings the broken --help and --version for install.

Location:
trunk/src/kmk/kmkbuiltin
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/kmk/kmkbuiltin/install.c

    r1327 r1329  
    176176        group = owner = NULL;
    177177        while ((ch = getopt_long(argc, argv, "B:bCcdf:g:Mm:o:pSsv", long_options, NULL)) != -1)
    178                 switch((char)ch) {
     178                switch(ch) {
    179179                case 'B':
    180180                        suffix = optarg;
  • trunk/src/kmk/kmkbuiltin/kDepIDB.c

    r1269 r1329  
    127127            size_t cchDep;
    128128            pbCur += cchPrefix;
    129             cchDep = strlen(pbCur);
    130             depAdd(pbCur, cchDep);
     129            cchDep = strlen((const char *)pbCur);
     130            depAdd((const char *)pbCur, cchDep);
    131131            dprintf(("%05x: '%s'\n", pbCur - pbStream, pbCur));
    132132
     
    756756static int ProcessIDB(FILE *pInput)
    757757{
    758     size_t  cbFile;
    759     char   *pbFile;
    760     char   *pbHdr = PDB_SIGNATURE_200;
    761     int     rc = 0;
     758    size_t      cbFile;
     759    uint8_t    *pbFile;
     760    int         rc = 0;
    762761
    763762    /*
    764763     * Read the file into memory.
    765764     */
    766     pbFile = (char *)ReadFileIntoMemory(pInput, &cbFile);
     765    pbFile = (uint8_t *)ReadFileIntoMemory(pInput, &cbFile);
    767766    if (!pbFile)
    768767        return 1;
  • trunk/src/kmk/kmkbuiltin/md5sum.c

    r1231 r1329  
    313313        cb = read_file(pvFile, abBuf, sizeof(abBuf));
    314314        if (cb > 0)
    315             MD5Update(&Ctx, abBuf, cb);
     315            MD5Update(&Ctx, (unsigned char *)&abBuf[0], cb);
    316316        else if (!cb)
    317317            break;
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