summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRoger Dingledine <arma@torproject.org>2008-02-19 22:52:50 +0000
committerRoger Dingledine <arma@torproject.org>2008-02-19 22:52:50 +0000
commitd1a195d3cb5201ef66d3aa3b71fecde7f2083ff2 (patch)
treed4b8ec31c91fc13bdb5ad19bd4517655a7f7f143
parent632c035ad967446f42a546cdf069c04f8b5d1678 (diff)
downloadtor-d1a195d3cb5201ef66d3aa3b71fecde7f2083ff2.tar.gz
tor-d1a195d3cb5201ef66d3aa3b71fecde7f2083ff2.zip
call a "number of characters" a size_t, not an int
svn:r13594
-rw-r--r--src/or/buffers.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/or/buffers.c b/src/or/buffers.c
index 0c18f9a179..f67f44cb6a 100644
--- a/src/or/buffers.c
+++ b/src/or/buffers.c
@@ -1056,7 +1056,7 @@ buf_pos_inc(buf_pos_t *pos)
/** Return true iff the <b>n</b>-character string in <b>s</b> appears
* (verbatim) at <b>pos</b>. */
static int
-buf_matches_at_pos(const buf_pos_t *pos, const char *s, int n)
+buf_matches_at_pos(const buf_pos_t *pos, const char *s, size_t n)
{
buf_pos_t p;
memcpy(&p, pos, sizeof(p));
@@ -1076,7 +1076,7 @@ buf_matches_at_pos(const buf_pos_t *pos, const char *s, int n)
/** Return the first position in <b>buf</b> at which the <b>n</b>-character
* string <b>s</b> occurs, or -1 if it does not occur. */
static int
-buf_find_string_offset(const buf_t *buf, const char *s, int n)
+buf_find_string_offset(const buf_t *buf, const char *s, size_t n)
{
buf_pos_t pos;
buf_pos_init(buf, &pos);