diff options
Diffstat (limited to 'gpgme/data-user.c')
-rw-r--r-- | gpgme/data-user.c | 39 |
1 files changed, 19 insertions, 20 deletions
diff --git a/gpgme/data-user.c b/gpgme/data-user.c index dd0e5700..f67c0fe7 100644 --- a/gpgme/data-user.c +++ b/gpgme/data-user.c @@ -1,22 +1,21 @@ /* data-user.c - A user callback 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> @@ -27,7 +26,7 @@ #include "data.h" -static int +static ssize_t user_read (GpgmeData dh, void *buffer, size_t size) { return (*dh->data.user.cbs->read) (dh->data.user.handle, buffer, size); @@ -48,7 +47,7 @@ user_seek (GpgmeData dh, off_t offset, int whence) } -static int +static void user_release (GpgmeData dh) { (*dh->data.user.cbs->release) (dh->data.user.handle); |