summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorjenglish <jenglish@flightlab.com>2008-10-29 23:31:55 (GMT)
committerjenglish <jenglish@flightlab.com>2008-10-29 23:31:55 (GMT)
commitc1f0473e3354fd5c7471d0389e6bcd9a200ec8c7 (patch)
treebc23c181932b473079528a650908b4becd589e9d
parent63c25be2891e049c65ac5148532f2a40c548dc5c (diff)
downloadtk-c1f0473e3354fd5c7471d0389e6bcd9a200ec8c7.zip
tk-c1f0473e3354fd5c7471d0389e6bcd9a200ec8c7.tar.gz
tk-c1f0473e3354fd5c7471d0389e6bcd9a200ec8c7.tar.bz2
Remove incorrect 'const' qualifier.
Remove useless 'register' declarations too, while we're at it.
-rw-r--r--ChangeLog5
-rw-r--r--generic/tkAtom.c14
2 files changed, 12 insertions, 7 deletions
diff --git a/ChangeLog b/ChangeLog
index c184406..e0d715a 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2008-10-29 Joe English <jenglish@users.sourceforge.net>
+
+ * generic/tkAtom.c(Tk_GetAtomName): Remove incorrect 'const' qualifier.
+ Remove useless 'register' declarations too, while we're at it.
+
2008-10-28 Jan Nijtmans <nijtmans@users.sf.net>
* generic/tk.h: Add "const" to a few struct member fields.
diff --git a/generic/tkAtom.c b/generic/tkAtom.c
index 145de4d..3afada9 100644
--- a/generic/tkAtom.c
+++ b/generic/tkAtom.c
@@ -12,7 +12,7 @@
* See the file "license.terms" for information on usage and redistribution of
* this file, and for a DISCLAIMER OF ALL WARRANTIES.
*
- * RCS: @(#) $Id: tkAtom.c,v 1.9 2008/10/28 22:33:06 nijtmans Exp $
+ * RCS: @(#) $Id: tkAtom.c,v 1.10 2008/10/29 23:31:55 jenglish Exp $
*/
#include "tkInt.h"
@@ -80,8 +80,8 @@ Tk_InternAtom(
* window's display. */
const char *name) /* Name to turn into atom. */
{
- register TkDisplay *dispPtr;
- register Tcl_HashEntry *hPtr;
+ TkDisplay *dispPtr;
+ Tcl_HashEntry *hPtr;
int isNew;
dispPtr = ((TkWindow *) tkwin)->dispPtr;
@@ -129,8 +129,8 @@ Tk_GetAtomName(
* this window's display. */
Atom atom) /* Atom whose name is wanted. */
{
- register TkDisplay *dispPtr;
- register Tcl_HashEntry *hPtr;
+ TkDisplay *dispPtr;
+ Tcl_HashEntry *hPtr;
dispPtr = ((TkWindow *) tkwin)->dispPtr;
if (!dispPtr->atomInit) {
@@ -139,7 +139,7 @@ Tk_GetAtomName(
hPtr = Tcl_FindHashEntry(&dispPtr->atomTable, (char *) atom);
if (hPtr == NULL) {
- const char *name;
+ char *name;
Tk_ErrorHandler handler;
int isNew, mustFree;
@@ -182,7 +182,7 @@ Tk_GetAtomName(
static void
AtomInit(
- register TkDisplay *dispPtr)/* Display to initialize. */
+ TkDisplay *dispPtr)/* Display to initialize. */
{
Tcl_HashEntry *hPtr;
Atom atom;