Changeset 1321
- Timestamp:
- Mar 21, 2004, 7:22:08 AM (21 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/emx/testcase/libc/miscinnotek/pathrewrite.c
-
Property cvs2svn:cvs-rev
changed from
1.1
to1.2
r1320 r1321 33 33 #include <string.h> 34 34 #include <stdio.h> 35 #include <unistd.h> 35 #include <errno.h> 36 #include <stdlib.h> 37 36 38 37 39 /******************************************************************************* 38 40 * Global Variables * 39 41 *******************************************************************************/ 40 char szEtcTo[256]; 42 /** buffer for dynamically getting the right ETC. */ 43 char gszEtcTo[256]; 41 44 /** rewrite the /etc directory. */ 42 45 __LIBC_PATHREWRITE gEtcRule = … … 44 47 __LIBC_PRWF_TYPE_DIR | __LIBC_PRWF_CASE_SENSITIVE, 45 48 "/etc", 4, 46 & szEtcTo[0], 049 &gszEtcTo[0], 0 47 50 }; 48 51 … … 62 65 int rcRet = 0; 63 66 FILE *pFile; 64 int rc;65 67 66 68 /* … … 96 98 } 97 99 98 strcpy( gEtcRule.pszTo, getenv("ETC"));100 strcpy(&gszEtcTo[0], getenv("ETC")); 99 101 gEtcRule.cchTo = strlen(gEtcRule.pszTo); 100 102 if (__libc_PathRewriteAdd(&gEtcRule, 1)) … … 129 131 printf("pathrewrite: Successfully executed all tests\n"); 130 132 else 131 printf("pathrewrite: %d test failes\n", rcRet);133 printf("pathrewrite: %d tests failed\n", rcRet); 132 134 return rcRet; 133 135 } -
Property cvs2svn:cvs-rev
changed from
Note:
See TracChangeset
for help on using the changeset viewer.