From 8e09451a57dda5becb741e289a5dbb9890747f8d Mon Sep 17 00:00:00 2001 From: Vsevolod Stakhov Date: Thu, 29 Mar 2012 16:08:38 +0400 Subject: [PATCH] Use guint64 for all IO operations. --- src/aio_event.c | 6 +++--- src/aio_event.h | 6 +++--- 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); /** -- 2.39.5