diff options
Diffstat (limited to 'src/progress.c')
-rw-r--r-- | src/progress.c | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/src/progress.c b/src/progress.c index 4fe6b63..c10ccaa 100644 --- a/src/progress.c +++ b/src/progress.c @@ -1,19 +1,19 @@ /* progress.c - status handler for progress status Copyright (C) 2000 Werner Koch (dd9jn) Copyright (C) 2001, 2002, 2003, 2004 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 Lesser General Public License as published by the Free Software Foundation; either version 2.1 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 Lesser General Public License for more details. - + You should have received a copy of the GNU Lesser General Public License along with this program; if not, write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA @@ -28,6 +28,7 @@ #include "util.h" #include "context.h" +#include "debug.h" gpgme_error_t @@ -46,7 +47,7 @@ _gpgme_progress_status_handler (void *priv, gpgme_status_code_t code, args_cpy = strdup (args); if (!args_cpy) - return gpg_error_from_errno (errno); + return gpg_error_from_syserror (); p = strchr (args_cpy, ' '); if (p) @@ -71,7 +72,7 @@ _gpgme_progress_status_handler (void *priv, gpgme_status_code_t code, } } } - } + } if (type != 'X') ctx->progress_cb (ctx->progress_cb_value, args_cpy, type, current, total); |