aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@rambler-co.ru>2012-03-29 16:08:38 +0400
committerVsevolod Stakhov <vsevolod@rambler-co.ru>2012-03-29 16:08:38 +0400
commit8e09451a57dda5becb741e289a5dbb9890747f8d (patch)
tree06a664259c7bd459702fe5bf8efdfa0839bf5707
parent54e84de2f56dd7d8b04627e2c13bad123832ed81 (diff)
downloadrspamd-8e09451a57dda5becb741e289a5dbb9890747f8d.tar.gz
rspamd-8e09451a57dda5becb741e289a5dbb9890747f8d.zip
Use guint64 for all IO operations.
-rw-r--r--src/aio_event.c6
-rw-r--r--src/aio_event.h6
2 files changed, 6 insertions, 6 deletions
diff --git a/src/aio_event.c b/src/aio_event.c
index 8608e9d4c..85f52118d 100644
--- a/src/aio_event.c
+++ b/src/aio_event.c
@@ -53,7 +53,7 @@
struct io_cbdata {
gint fd;
rspamd_aio_cb cb;
- gsize len;
+ guint64 len;
gpointer buf;
gpointer io_buf;
gpointer ud;
@@ -307,7 +307,7 @@ rspamd_aio_open (struct aio_context *ctx, const gchar *path, int flags)
* Asynchronous read of file
*/
gint
-rspamd_aio_read (gint fd, gpointer buf, gsize len, guint64 offset, struct aio_context *ctx, rspamd_aio_cb cb, gpointer ud)
+rspamd_aio_read (gint fd, gpointer buf, guint64 len, guint64 offset, struct aio_context *ctx, rspamd_aio_cb cb, gpointer ud)
{
struct io_cbdata *cbdata;
gint r = -1;
@@ -377,7 +377,7 @@ blocking:
* Asynchronous write of file
*/
gint
-rspamd_aio_write (gint fd, gpointer buf, gsize len, guint64 offset, struct aio_context *ctx, rspamd_aio_cb cb, gpointer ud)
+rspamd_aio_write (gint fd, gpointer buf, guint64 len, guint64 offset, struct aio_context *ctx, rspamd_aio_cb cb, gpointer ud)
{
struct io_cbdata *cbdata;
gint r = -1;
diff --git a/src/aio_event.h b/src/aio_event.h
index d51d02b3b..45f6015de 100644
--- a/src/aio_event.h
+++ b/src/aio_event.h
@@ -35,7 +35,7 @@ struct aio_context;
/**
* Callback for notifying
*/
-typedef void (*rspamd_aio_cb) (gint fd, gint res, gsize len, gpointer data, gpointer ud);
+typedef void (*rspamd_aio_cb) (gint fd, gint res, guint64 len, gpointer data, gpointer ud);
/**
* Initialize aio with specified event base
@@ -50,13 +50,13 @@ gint rspamd_aio_open (struct aio_context *ctx, const gchar *path, int flags);
/**
* Asynchronous read of file
*/
-gint rspamd_aio_read (gint fd, gpointer buf, gsize len, guint64 offset,
+gint rspamd_aio_read (gint fd, gpointer buf, guint64 len, guint64 offset,
struct aio_context *ctx, rspamd_aio_cb cb, gpointer ud);
/**
* Asynchronous write of file
*/
-gint rspamd_aio_write (gint fd, gpointer buf, gsize len, guint64 offset,
+gint rspamd_aio_write (gint fd, gpointer buf, guint64 len, guint64 offset,
struct aio_context *ctx, rspamd_aio_cb cb, gpointer ud);
/**