diff options
author | donal.k.fellows@manchester.ac.uk <dkf> | 2003-05-19 14:37:19 (GMT) |
---|---|---|
committer | donal.k.fellows@manchester.ac.uk <dkf> | 2003-05-19 14:37:19 (GMT) |
commit | c1eec95a1fde26a36e77b8401888073f1078a1a1 (patch) | |
tree | ddeb492cf7e19df30155f657434c61b8ec045ba4 /generic/tkTextMark.c | |
parent | 164b0a6725ccc4777c3a1b51423abaf7045df2f1 (diff) | |
download | tk-c1eec95a1fde26a36e77b8401888073f1078a1a1.zip tk-c1eec95a1fde26a36e77b8401888073f1078a1a1.tar.gz tk-c1eec95a1fde26a36e77b8401888073f1078a1a1.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.c | 7 |
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, |