summaryrefslogtreecommitdiffstats
path: root/generic/tkClipboard.c
diff options
context:
space:
mode:
authorpatthoyts@users.sourceforge.net <patthoyts>2007-11-17 23:07:45 (GMT)
committerpatthoyts@users.sourceforge.net <patthoyts>2007-11-17 23:07:45 (GMT)
commit12c00d26b35bb8d0e08a37c3ab6843ad6884efe5 (patch)
tree23a7a36869acb014ae54c3af70058f4134ecac67 /generic/tkClipboard.c
parent7e9cb4f80b05fe1886448d2e19b7dda4dd8b1404 (diff)
downloadtk-12c00d26b35bb8d0e08a37c3ab6843ad6884efe5.zip
tk-12c00d26b35bb8d0e08a37c3ab6843ad6884efe5.tar.gz
tk-12c00d26b35bb8d0e08a37c3ab6843ad6884efe5.tar.bz2
Tidy up some variable types.
Diffstat (limited to 'generic/tkClipboard.c')
-rw-r--r--generic/tkClipboard.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/generic/tkClipboard.c b/generic/tkClipboard.c
index 0caae15..9dda480 100644
--- a/generic/tkClipboard.c
+++ b/generic/tkClipboard.c
@@ -11,7 +11,7 @@
* See the file "license.terms" for information on usage and redistribution of
* this file, and for a DISCLAIMER OF ALL WARRANTIES.
*
- * RCS: @(#) $Id: tkClipboard.c,v 1.16 2007/09/07 00:34:52 dgp Exp $
+ * RCS: @(#) $Id: tkClipboard.c,v 1.17 2007/11/17 23:07:45 patthoyts Exp $
*/
#include "tkInt.h"
@@ -61,7 +61,7 @@ ClipboardHandler(
TkClipboardTarget *targetPtr = (TkClipboardTarget*) clientData;
TkClipboardBuffer *cbPtr;
char *srcPtr, *destPtr;
- int count = 0;
+ size_t count = 0;
int scanned = 0;
size_t length, freeCount;
@@ -104,7 +104,7 @@ ClipboardHandler(
srcPtr = cbPtr->buffer;
length = cbPtr->length;
}
- return count;
+ return (int)count;
}
/*
@@ -150,7 +150,7 @@ ClipboardAppHandler(
length = maxBytes;
}
strncpy(buffer, p, length);
- return length;
+ return (int)length;
}
/*