diff options
author | jan.nijtmans <nijtmans@users.sourceforge.net> | 2011-04-21 12:05:13 (GMT) |
---|---|---|
committer | jan.nijtmans <nijtmans@users.sourceforge.net> | 2011-04-21 12:05:13 (GMT) |
commit | 445fd51fa9afc1afece5244fbaa88454f3d310c5 (patch) | |
tree | 2b831b4a172132563dfb04b121f9c8a95cc0d855 /generic/tclTest.c | |
parent | 81582f76e6fa7e328f9ae6c92cf756e569565818 (diff) | |
download | tcl-445fd51fa9afc1afece5244fbaa88454f3d310c5.zip tcl-445fd51fa9afc1afece5244fbaa88454f3d310c5.tar.gz tcl-445fd51fa9afc1afece5244fbaa88454f3d310c5.tar.bz2 |
fix warnings in tclTest.c
Diffstat (limited to 'generic/tclTest.c')
-rw-r--r-- | generic/tclTest.c | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/generic/tclTest.c b/generic/tclTest.c index f2a357a..9acbc5e 100644 --- a/generic/tclTest.c +++ b/generic/tclTest.c @@ -327,13 +327,13 @@ static int TestsetplatformCmd _ANSI_ARGS_((ClientData dummy, static int TeststaticpkgCmd _ANSI_ARGS_((ClientData dummy, Tcl_Interp *interp, int argc, CONST char **argv)); static int PretendTclpStat _ANSI_ARGS_((CONST char *path, - struct stat *buf)); + Tcl_StatBuf *buf)); static int TestStatProc1 _ANSI_ARGS_((CONST char *path, - struct stat *buf)); + Tcl_StatBuf *buf)); static int TestStatProc2 _ANSI_ARGS_((CONST char *path, - struct stat *buf)); + Tcl_StatBuf *buf)); static int TestStatProc3 _ANSI_ARGS_((CONST char *path, - struct stat *buf)); + Tcl_StatBuf *buf)); static int TeststatprocCmd _ANSI_ARGS_((ClientData dummy, Tcl_Interp *interp, int argc, CONST char **argv)); static int TesttranslatefilenameCmd _ANSI_ARGS_((ClientData dummy, @@ -4699,7 +4699,7 @@ TeststatprocCmd (dummy, interp, argc, argv) static int PretendTclpStat(path, buf) CONST char *path; - struct stat *buf; + Tcl_StatBuf *buf; { int ret; Tcl_Obj *pathPtr = Tcl_NewStringObj(path, -1); @@ -4793,9 +4793,9 @@ static int PretendTclpStat(path, buf) static int TestStatProc1(path, buf) CONST char *path; - struct stat *buf; + Tcl_StatBuf *buf; { - memset(buf, 0, sizeof(struct stat)); + memset(buf, 0, sizeof(Tcl_StatBuf)); buf->st_size = 1234; return ((strstr(path, "testStat1%.fil") == NULL) ? -1 : 0); } @@ -4804,9 +4804,9 @@ TestStatProc1(path, buf) static int TestStatProc2(path, buf) CONST char *path; - struct stat *buf; + Tcl_StatBuf *buf; { - memset(buf, 0, sizeof(struct stat)); + memset(buf, 0, sizeof(Tcl_StatBuf)); buf->st_size = 2345; return ((strstr(path, "testStat2%.fil") == NULL) ? -1 : 0); } @@ -4815,9 +4815,9 @@ TestStatProc2(path, buf) static int TestStatProc3(path, buf) CONST char *path; - struct stat *buf; + Tcl_StatBuf *buf; { - memset(buf, 0, sizeof(struct stat)); + memset(buf, 0, sizeof(Tcl_StatBuf)); buf->st_size = 3456; return ((strstr(path, "testStat3%.fil") == NULL) ? -1 : 0); } |