summaryrefslogtreecommitdiffstats
path: root/generic
diff options
context:
space:
mode:
authordas <das>2007-05-30 06:37:41 (GMT)
committerdas <das>2007-05-30 06:37:41 (GMT)
commit48d6dbc41b0b9cd9e07d7ad699bd0e90a90424c7 (patch)
treeef867872c3d683cc94152af59abd9fa937a9b6db /generic
parentf3d210a9783984b6003f0a0bc94414d2adfe5260 (diff)
downloadtk-48d6dbc41b0b9cd9e07d7ad699bd0e90a90424c7.zip
tk-48d6dbc41b0b9cd9e07d7ad699bd0e90a90424c7.tar.gz
tk-48d6dbc41b0b9cd9e07d7ad699bd0e90a90424c7.tar.bz2
* generic/tkFileFilter.c (AddClause): fix warning.
Diffstat (limited to 'generic')
-rw-r--r--generic/tkFileFilter.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/generic/tkFileFilter.c b/generic/tkFileFilter.c
index d9dc511..3849867 100644
--- a/generic/tkFileFilter.c
+++ b/generic/tkFileFilter.c
@@ -9,7 +9,7 @@
* See the file "license.terms" for information on usage and redistribution
* of this file, and for a DISCLAIMER OF ALL WARRANTIES.
*
- * RCS: @(#) $Id: tkFileFilter.c,v 1.5.2.1 2007/05/09 12:55:57 das Exp $
+ * RCS: @(#) $Id: tkFileFilter.c,v 1.5.2.2 2007/05/30 06:37:41 das Exp $
*/
#include "tkInt.h"
@@ -313,7 +313,7 @@ static int AddClause(interp, filterPtr, patternsStr, ostypesStr, isWindows)
if (ostypeCount > 0 && ostypeList != NULL) {
for (i=0; i<ostypeCount; i++) {
MacFileType * mfPtr = (MacFileType*)ckalloc(sizeof(MacFileType));
- char *string = ostypeList[i];
+ CONST char *string = ostypeList[i];
mfPtr->type = (OSType) string[0] << 24 | (OSType) string[1] << 16 |
(OSType) string[2] << 8 | (OSType) string[3];