summaryrefslogtreecommitdiffstats
path: root/generic/tkTextMark.c
diff options
context:
space:
mode:
authordkf <donal.k.fellows@manchester.ac.uk>2003-05-19 14:37:19 (GMT)
committerdkf <donal.k.fellows@manchester.ac.uk>2003-05-19 14:37:19 (GMT)
commita302e60a15b009ebd33033013d2a602c2a1a0825 (patch)
treeddeb492cf7e19df30155f657434c61b8ec045ba4 /generic/tkTextMark.c
parentcf597519de1f5e18be3c07e6988cb6e91300ed6e (diff)
downloadtk-a302e60a15b009ebd33033013d2a602c2a1a0825.zip
tk-a302e60a15b009ebd33033013d2a602c2a1a0825.tar.gz
tk-a302e60a15b009ebd33033013d2a602c2a1a0825.tar.bz2
Stopped warnings about signed/unsigned and strncmp() and added missing forward decl
Diffstat (limited to 'generic/tkTextMark.c')
-rw-r--r--generic/tkTextMark.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/generic/tkTextMark.c b/generic/tkTextMark.c
index 8c17e4c..d48e10a 100644
--- a/generic/tkTextMark.c
+++ b/generic/tkTextMark.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: tkTextMark.c,v 1.7 2003/05/19 13:04:23 vincentdarley Exp $
+ * RCS: @(#) $Id: tkTextMark.c,v 1.8 2003/05/19 14:37:20 dkf Exp $
*/
#include "tkInt.h"
@@ -156,9 +156,10 @@ TkTextMarkCmd(textPtr, interp, objc, objv)
}
str = Tcl_GetStringFromObj(objv[4],&length);
c = str[0];
- if ((c == 'l') && (strncmp(str, "left", length) == 0)) {
+ if ((c == 'l') && (strncmp(str, "left", (unsigned)length) == 0)) {
newTypePtr = &tkTextLeftMarkType;
- } else if ((c == 'r') && (strncmp(str, "right", length) == 0)) {
+ } else if ((c == 'r') &&
+ (strncmp(str, "right", (unsigned)length) == 0)) {
newTypePtr = &tkTextRightMarkType;
} else {
Tcl_AppendResult(interp, "bad mark gravity \"", str,