diff options
author | jan.nijtmans <nijtmans@users.sourceforge.net> | 2018-11-27 22:33:24 (GMT) |
---|---|---|
committer | jan.nijtmans <nijtmans@users.sourceforge.net> | 2018-11-27 22:33:24 (GMT) |
commit | fb5142cb5e53bc33637e51d1259c380bc22a1dee (patch) | |
tree | 28996a9c1d52511e2dddcada915f8a901a3ea378 /doc | |
parent | be4368883a4540bcf3da8dec02e210e839354bbf (diff) | |
download | tk-fb5142cb5e53bc33637e51d1259c380bc22a1dee.zip tk-fb5142cb5e53bc33637e51d1259c380bc22a1dee.tar.gz tk-fb5142cb5e53bc33637e51d1259c380bc22a1dee.tar.bz2 |
Remove unnecessary type-casts from doc examples
Diffstat (limited to 'doc')
-rw-r--r-- | doc/CanvTkwin.3 | 2 | ||||
-rw-r--r-- | doc/ParseArgv.3 | 10 |
2 files changed, 6 insertions, 6 deletions
diff --git a/doc/CanvTkwin.3 b/doc/CanvTkwin.3 index d53c5b1..3534989 100644 --- a/doc/CanvTkwin.3 +++ b/doc/CanvTkwin.3 @@ -144,7 +144,7 @@ like this: .PP .CS static const Tk_CustomOption tagsOption = {Tk_CanvasTagsParseProc, - Tk_CanvasTagsPrintProc, (ClientData) NULL + Tk_CanvasTagsPrintProc, NULL }; static const Tk_ConfigSpec configSpecs[] = { diff --git a/doc/ParseArgv.3 b/doc/ParseArgv.3 index 3a9bd49..7749d92 100644 --- a/doc/ParseArgv.3 +++ b/doc/ParseArgv.3 @@ -314,14 +314,14 @@ Boolean exec = FALSE; Tk_ArgvInfo argTable[] = { {"\-X", TK_ARGV_CONSTANT, (char *) 1, (char *) &debugFlag, "Turn on debugging printfs"}, - {"\-N", TK_ARGV_INT, (char *) NULL, (char *) &numReps, + {"\-N", TK_ARGV_INT, NULL, (char *) &numReps, "Number of repetitions"}, - {"\-of", TK_ARGV_STRING, (char *) NULL, (char *) &fileName, + {"\-of", TK_ARGV_STRING, NULL, (char *) &fileName, "Name of file for output"}, - {"x", TK_ARGV_REST, (char *) NULL, (char *) &exec, + {"x", TK_ARGV_REST, NULL, (char *) &exec, "File to exec, followed by any arguments (must be last argument)."}, - {(char *) NULL, TK_ARGV_END, (char *) NULL, (char *) NULL, - (char *) NULL} + {NULL, TK_ARGV_END, NULL, NULL, + NULL} }; main(argc, argv) |