summaryrefslogtreecommitdiffstats
path: root/generic/tkFileFilter.c
diff options
context:
space:
mode:
authormo <mo>2000-07-06 03:17:43 (GMT)
committermo <mo>2000-07-06 03:17:43 (GMT)
commit8ea696f3623c8f3df9b570f448c1fefedf4ff750 (patch)
tree41624ab1c46012e311224b73a36cc87ae5bebff5 /generic/tkFileFilter.c
parentedaa3cc21cb508ea5f303fed0cae5bf9af5b6503 (diff)
downloadtk-8ea696f3623c8f3df9b570f448c1fefedf4ff750.zip
tk-8ea696f3623c8f3df9b570f448c1fefedf4ff750.tar.gz
tk-8ea696f3623c8f3df9b570f448c1fefedf4ff750.tar.bz2
* generic/tkFileFilter.c (AddClause): Cast to match function prototype.
* win/stubs.c (_XInitImageFuncPtrs): Add return value for function. * win/tkWinButton.c (buttonStyles, ButtonBindProc, ComputeStyle): Remove unused declarations. * win/tkWinColor.c (GetColorByName, GetColorByValue): Remove unused function declarations. * win/tkWinDialog.c (TrySetDirectory): Remove unused function declaration. * win/tkWinEmbed.c (TkWinEmbeddedEventProc): Cast to match function prototype. * win/tkWinMenu.c (winMenuMutex, MenuExitProc): Remove unused declaration. * win/tkWinWindow.c (StackWindow): Remove unused declaration. * win/tkWinWm.c (ConfigureEvent): Remove unused declaration. * win/tkWinX.c (winXMutex): Remove unused declaration. * xlib/ximage.c (XCreateBitmapFromData): Cast to match function prototype.
Diffstat (limited to 'generic/tkFileFilter.c')
-rw-r--r--generic/tkFileFilter.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/generic/tkFileFilter.c b/generic/tkFileFilter.c
index 0528351..b9bebd7 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.3 1999/04/16 01:51:13 stanton Exp $
+ * RCS: @(#) $Id: tkFileFilter.c,v 1.4 2000/07/06 03:17:43 mo Exp $
*/
#include "tkInt.h"
@@ -270,7 +270,7 @@ static int AddClause(interp, filterPtr, patternsStr, ostypesStr, isWindows)
/*
* Prepend a "*" to patterns that do not have a leading "*"
*/
- globPtr->pattern = (char*)ckalloc(len+1);
+ globPtr->pattern = (char*)ckalloc((unsigned int) len+1);
globPtr->pattern[0] = '*';
strcpy(globPtr->pattern+1, globList[i]);
}
@@ -289,11 +289,11 @@ static int AddClause(interp, filterPtr, patternsStr, ostypesStr, isWindows)
strcpy(globPtr->pattern, "*.");
}
else {
- globPtr->pattern = (char*)ckalloc(len);
+ globPtr->pattern = (char*)ckalloc((unsigned int) len);
strcpy(globPtr->pattern, globList[i]);
}
} else {
- globPtr->pattern = (char*)ckalloc(len);
+ globPtr->pattern = (char*)ckalloc((unsigned int) len);
strcpy(globPtr->pattern, globList[i]);
}