Changeset 1329 in kBuild
- Timestamp:
- Dec 2, 2007 8:49:33 PM (17 years ago)
- Location:
- trunk/src/kmk/kmkbuiltin
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/kmk/kmkbuiltin/install.c
r1327 r1329 176 176 group = owner = NULL; 177 177 while ((ch = getopt_long(argc, argv, "B:bCcdf:g:Mm:o:pSsv", long_options, NULL)) != -1) 178 switch( (char)ch) {178 switch(ch) { 179 179 case 'B': 180 180 suffix = optarg; -
trunk/src/kmk/kmkbuiltin/kDepIDB.c
r1269 r1329 127 127 size_t cchDep; 128 128 pbCur += cchPrefix; 129 cchDep = strlen( pbCur);130 depAdd( pbCur, cchDep);129 cchDep = strlen((const char *)pbCur); 130 depAdd((const char *)pbCur, cchDep); 131 131 dprintf(("%05x: '%s'\n", pbCur - pbStream, pbCur)); 132 132 … … 756 756 static int ProcessIDB(FILE *pInput) 757 757 { 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; 762 761 763 762 /* 764 763 * Read the file into memory. 765 764 */ 766 pbFile = ( char*)ReadFileIntoMemory(pInput, &cbFile);765 pbFile = (uint8_t *)ReadFileIntoMemory(pInput, &cbFile); 767 766 if (!pbFile) 768 767 return 1; -
trunk/src/kmk/kmkbuiltin/md5sum.c
r1231 r1329 313 313 cb = read_file(pvFile, abBuf, sizeof(abBuf)); 314 314 if (cb > 0) 315 MD5Update(&Ctx, abBuf, cb);315 MD5Update(&Ctx, (unsigned char *)&abBuf[0], cb); 316 316 else if (!cb) 317 317 break;
Note:
See TracChangeset
for help on using the changeset viewer.