diff options
author | dgp <dgp@users.sourceforge.net> | 2005-08-11 01:32:26 (GMT) |
---|---|---|
committer | dgp <dgp@users.sourceforge.net> | 2005-08-11 01:32:26 (GMT) |
commit | c76b64e4b9353b355397f17e678900732550a513 (patch) | |
tree | 697612ad3e1d7abc0534fe0618d217e9555e6eb6 /generic/tkImage.c | |
parent | c8d989f48e69bfff4d7cb7214f8f4539e303fd7c (diff) | |
download | tk-c76b64e4b9353b355397f17e678900732550a513.zip tk-c76b64e4b9353b355397f17e678900732550a513.tar.gz tk-c76b64e4b9353b355397f17e678900732550a513.tar.bz2 |
assorted typos and errors caught by compiler
Diffstat (limited to 'generic/tkImage.c')
-rw-r--r-- | generic/tkImage.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/generic/tkImage.c b/generic/tkImage.c index 570d39f..737ad7b 100644 --- a/generic/tkImage.c +++ b/generic/tkImage.c @@ -10,7 +10,7 @@ * See the file "license.terms" for information on usage and redistribution of * this file, and for a DISCLAIMER OF ALL WARRANTIES. * - * RCS: @(#) $Id: tkImage.c,v 1.23 2005/08/10 22:02:22 dkf Exp $ + * RCS: @(#) $Id: tkImage.c,v 1.24 2005/08/11 01:32:26 dgp Exp $ */ #include "tkInt.h" @@ -172,9 +172,9 @@ Tk_ImageObjCmd(clientData, interp, objc, objv) Image *imagePtr; Tcl_HashEntry *hPtr; Tcl_HashSearch search; - char idString[16 + TCL_INTEGER_SPACE], *name; + char idString[16 + TCL_INTEGER_SPACE]; TkDisplay *dispPtr = winPtr->dispPtr; - CONST char *arg; + char *arg, *name; ThreadSpecificData *tsdPtr = (ThreadSpecificData *) Tcl_GetThreadData(&dataKey, sizeof(ThreadSpecificData)); @@ -429,6 +429,8 @@ Tk_ImageObjCmd(clientData, interp, objc, objv) Tcl_SetIntObj(Tcl_GetObjResult(interp), masterPtr->width); break; } + default: + Tcl_Panic("can't happen"); break; } return TCL_OK; |