[almanah] vfs: Clarify buffer types
- From: Philip Withnall <pwithnall src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [almanah] vfs: Clarify buffer types
- Date: Tue, 6 Dec 2016 07:55:31 +0000 (UTC)
commit 7ea1472643e6a812fd5875e4a8fcb24b76f48b8a
Author: Philip Withnall <philip tecnocode co uk>
Date: Tue Dec 6 00:56:20 2016 +0000
vfs: Clarify buffer types
Use guint8 to make it clear that we’re dealing with arrays which are
indexed as bytes. This also eliminates some ‘pointer arithmetic with
void*’ warnings from the compiler.
src/vfs.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/src/vfs.c b/src/vfs.c
index 323722e..be06b5f 100644
--- a/src/vfs.c
+++ b/src/vfs.c
@@ -94,7 +94,7 @@ struct _AlmanahSQLiteVFS
gboolean decrypted;
- gpointer plain_buffer;
+ guint8 *plain_buffer;
gsize plain_buffer_size; /* Reserved memory size */
goffset plain_offset;
gsize plain_size; /* Data size (plain_size <= plain_buffer_size) */
@@ -106,7 +106,7 @@ typedef struct _CipherOperation CipherOperation;
typedef struct _GpgmeNpmClosure GpgmeNpmClosure;
struct _GpgmeNpmClosure {
- gpointer buffer;
+ guint8 *buffer;
gsize buffer_size;
goffset offset;
gsize size;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]