aboutsummaryrefslogtreecommitdiffstats
path: root/dirmngr/dirmngr.c
diff options
context:
space:
mode:
authorNIIBE Yutaka <[email protected]>2022-04-26 02:16:28 +0000
committerNIIBE Yutaka <[email protected]>2022-04-26 02:16:28 +0000
commitd6eb2761330508d1c19f99ccdefefb1febbb81c4 (patch)
tree67e8aaec029702ab384e178c4405bd8a6870e2f2 /dirmngr/dirmngr.c
parenttests: Let make check-all work again. (diff)
downloadgnupg-d6eb2761330508d1c19f99ccdefefb1febbb81c4.tar.gz
gnupg-d6eb2761330508d1c19f99ccdefefb1febbb81c4.zip
dirmngr: Fix for C90 compiler.
* dirmngr/dirmngr.c (main): Declaration before a statement. -- Signed-off-by: NIIBE Yutaka <[email protected]>
Diffstat (limited to 'dirmngr/dirmngr.c')
-rw-r--r--dirmngr/dirmngr.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/dirmngr/dirmngr.c b/dirmngr/dirmngr.c
index b36d263f7..dbe971963 100644
--- a/dirmngr/dirmngr.c
+++ b/dirmngr/dirmngr.c
@@ -1275,6 +1275,8 @@ main (int argc, char **argv)
#ifndef HAVE_W32_SYSTEM
else if (cmd == aSupervised)
{
+ struct stat statbuf;
+
if (!opt.quiet)
log_info(_("WARNING: \"%s\" is a deprecated option\n"), "--supervised");
@@ -1283,7 +1285,6 @@ main (int argc, char **argv)
We will also not detach from the controlling process or close
stderr; the supervisor should handle all of that. */
- struct stat statbuf;
if (fstat (3, &statbuf) == -1 && errno == EBADF)
{
log_error ("file descriptor 3 must be validin --supervised mode\n");