aboutsummaryrefslogtreecommitdiffstats
path: root/gpgme/data-mem.c
diff options
context:
space:
mode:
Diffstat (limited to 'gpgme/data-mem.c')
-rw-r--r--gpgme/data-mem.c39
1 files changed, 19 insertions, 20 deletions
diff --git a/gpgme/data-mem.c b/gpgme/data-mem.c
index 0afd1168..3c22fbdb 100644
--- a/gpgme/data-mem.c
+++ b/gpgme/data-mem.c
@@ -1,22 +1,21 @@
/* data-mem.c - A memory based data object.
- * Copyright (C) 2002 g10 Code GmbH
- *
- * This file is part of GPGME.
- *
- * GPGME is free software; you can redistribute it and/or modify
- * it under the terms of the GNU General Public License as published by
- * the Free Software Foundation; either version 2 of the License, or
- * (at your option) any later version.
- *
- * GPGME is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program; if not, write to the Free Software
- * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA
- */
+ Copyright (C) 2002 g10 Code GmbH
+
+ This file is part of GPGME.
+
+ GPGME is free software; you can redistribute it and/or modify it
+ under the terms of the GNU General Public License as published by
+ the Free Software Foundation; either version 2 of the License, or
+ (at your option) any later version.
+
+ GPGME is distributed in the hope that it will be useful, but
+ WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ General Public License for more details.
+
+ You should have received a copy of the GNU General Public License
+ along with GPGME; if not, write to the Free Software Foundation,
+ Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */
#if HAVE_CONFIG_H
#include <config.h>
@@ -31,7 +30,7 @@
#include "util.h"
-static int
+static ssize_t
mem_read (GpgmeData dh, void *buffer, size_t size)
{
size_t amt = dh->data.mem.length - dh->data.mem.offset;
@@ -141,7 +140,7 @@ mem_seek (GpgmeData dh, off_t offset, int whence)
}
-static int
+static void
mem_release (GpgmeData dh)
{
if (dh->data.mem.buffer)