Skip to content
Browse files

Change set_error_buffer() to return ErlDrvSizeT

  • Loading branch information...
1 parent fa0d512 commit 4423526cc64bb18c69b3cd765965a8bf9f7a9a0c @tuncer committed Dec 16, 2011
Showing with 2 additions and 2 deletions.
  1. +2 −2 c_src/sendfile_drv.c
View
4 c_src/sendfile_drv.c
@@ -155,10 +155,10 @@ typedef union {
}* result;
} Buffer;
-static size_t set_error_buffer(Buffer* b, int socket_fd, int err)
+static ErlDrvSizeT set_error_buffer(Buffer* b, int socket_fd, int err)
{
char* s, *t;
- size_t result_size = sizeof *(b->result);
+ ErlDrvSizeT result_size = sizeof *(b->result);
memset(b->result, 0, result_size);
put_int32(socket_fd, &(b->result->out_fd));
s = erl_errno_id(err);

0 comments on commit 4423526

Please sign in to comment.
Something went wrong with that request. Please try again.