Changeset 7594 for trunk/tools
- Timestamp:
- Dec 9, 2001, 5:11:13 PM (24 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tools/CmdQd/CmdQd.c
r7451 r7594 1 /* $Id: CmdQd.c,v 1.1 1 2001-11-24 20:40:44bird Exp $1 /* $Id: CmdQd.c,v 1.12 2001-12-09 16:11:13 bird Exp $ 2 2 * 3 3 * Command Queue Daemon / Client. … … 587 587 * Make job entry. 588 588 */ 589 _heap_check();590 589 pJob = malloc((int)&((PJOB)0)->JobInfo.szzEnv[pShrMem->u1.Submit.cchEnv]); 591 590 if (pJob) 592 591 { 593 _heap_check();594 592 memcpy(&pJob->JobInfo, &pShrMem->u1.Submit, 595 593 (int)&((struct Submit *)0)->szzEnv[pShrMem->u1.Submit.cchEnv]); 596 _heap_check();597 594 pJob->rc = -1; 598 595 pJob->pNext = NULL; … … 1286 1283 DosCloseEventSem(hevJobQueue); 1287 1284 1288 _dump_allocated(16);1289 1290 1285 return 0; 1291 1286 } … … 1816 1811 * Much space to play with. 1817 1812 * @remark (From fastdep.) 1813 * @remark BOGUS CODE! Recheck it please! 1818 1814 */ 1819 1815 char *fileNormalize(char *pszFilename, char *pszCurDir) 1820 1816 { 1821 char * psz ;1817 char * pszRet = pszFilename; 1822 1818 int aiSlashes[CCHMAXPATH/2]; 1823 1819 int cSlashes; … … 1827 1823 * Init stuff. 1828 1824 */ 1829 for (i = 1, cSlashes ; pszCurDir[i] != '\0'; i++)1825 for (i = 1, cSlashes = 0; pszCurDir[i] != '\0'; i++) 1830 1826 { 1831 1827 if (pszCurDir[i] == '/') … … 1843 1839 1844 1840 /* expand path? */ 1845 pszFilename = psz;1846 1841 if (pszFilename[1] != ':') 1847 1842 { /* relative path */ … … 1874 1869 /* else: assume full path */ 1875 1870 1876 return psz ;1871 return pszRet; 1877 1872 } 1878 1873
Note:
See TracChangeset
for help on using the changeset viewer.