]> granicus.if.org Git - libevent/commitdiff
Use off_t for the length parameter of evbuffer_add_file
authorNick Mathewson <nickm@torproject.org>
Sat, 13 Feb 2010 04:40:13 +0000 (23:40 -0500)
committerNick Mathewson <nickm@torproject.org>
Sat, 13 Feb 2010 04:40:13 +0000 (23:40 -0500)
buffer.c
include/event2/buffer.h

index f6c5bca908a6bcec5b89ac7ffc1e43f4aa1baf96..e098df79361f8cfbb0a5ff831cd40b29e7c62b34 100644 (file)
--- a/buffer.c
+++ b/buffer.c
@@ -2239,7 +2239,7 @@ done:
  */
 int
 evbuffer_add_file(struct evbuffer *outbuf, int fd,
-    off_t offset, size_t length)
+    off_t offset, off_t length)
 {
 #if defined(USE_SENDFILE) || defined(_EVENT_HAVE_MMAP)
        struct evbuffer_chain *chain;
index 2a8e8378f44abbd8fb232a20dbfbac294167dd7c..e84bc1265ae04338a9989d6d8f3be590bea30027 100644 (file)
@@ -366,7 +366,7 @@ int evbuffer_add_reference(struct evbuffer *outbuf,
 */
 
 int evbuffer_add_file(struct evbuffer *output, int fd, off_t offset,
-    size_t length);
+    off_t length);
 
 /**
   Append a formatted string to the end of an evbuffer.