diff options
author | dkf <donal.k.fellows@manchester.ac.uk> | 2010-01-02 22:52:38 (GMT) |
---|---|---|
committer | dkf <donal.k.fellows@manchester.ac.uk> | 2010-01-02 22:52:38 (GMT) |
commit | 892f8aa8caa8bcd31d2df297e29b6ffe2013f2ad (patch) | |
tree | 729b6fa569e8ee8448009d10292da7e7a85108b0 /generic/tkImgPhoto.c | |
parent | 8f3de0a30c0a7ea499c81e5e0e000d2297233137 (diff) | |
download | tk-892f8aa8caa8bcd31d2df297e29b6ffe2013f2ad.zip tk-892f8aa8caa8bcd31d2df297e29b6ffe2013f2ad.tar.gz tk-892f8aa8caa8bcd31d2df297e29b6ffe2013f2ad.tar.bz2 |
SMALL FIX: Remove useless explicit casts now that we require C89 or later.
Diffstat (limited to 'generic/tkImgPhoto.c')
-rw-r--r-- | generic/tkImgPhoto.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/generic/tkImgPhoto.c b/generic/tkImgPhoto.c index f133de2..353d57a 100644 --- a/generic/tkImgPhoto.c +++ b/generic/tkImgPhoto.c @@ -17,7 +17,7 @@ * Department of Computer Science, * Australian National University. * - * RCS: @(#) $Id: tkImgPhoto.c,v 1.92 2009/09/25 08:46:07 dkf Exp $ + * RCS: @(#) $Id: tkImgPhoto.c,v 1.93 2010/01/02 22:52:38 dkf Exp $ */ #include "tkImgPhoto.h" @@ -330,11 +330,11 @@ static int ImgPhotoCreate( Tcl_Interp *interp, /* Interpreter for application containing * image. */ - const char *name, /* Name to use for image. */ + const char *name, /* Name to use for image. */ int objc, /* Number of arguments. */ Tcl_Obj *const objv[], /* Argument objects for options (doesn't * include image name or type). */ - const Tk_ImageType *typePtr, /* Pointer to our type record (not used). */ + const Tk_ImageType *typePtr,/* Pointer to our type record (not used). */ Tk_ImageMaster master, /* Token for image, to be used by us in later * callbacks. */ ClientData *clientDataPtr) /* Store manager's token for image here; it @@ -3858,9 +3858,9 @@ PhotoOptionCleanupProc( OptionAssocData *list = clientData; while (list != NULL) { - register OptionAssocData *ptr; + register OptionAssocData *ptr = list; - list = (ptr = list)->nextPtr; + list = list->nextPtr; ckfree((char *) ptr); } } |