summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNIIBE Yutaka <gniibe@fsij.org>2022-04-26 11:16:28 +0900
committerNIIBE Yutaka <gniibe@fsij.org>2022-04-26 11:16:28 +0900
commitd6eb2761330508d1c19f99ccdefefb1febbb81c4 (patch)
tree67e8aaec029702ab384e178c4405bd8a6870e2f2
parent03e8668dbb27d83fb6064681ace560eb7154c569 (diff)
dirmngr: Fix for C90 compiler.
* dirmngr/dirmngr.c (main): Declaration before a statement. -- Signed-off-by: NIIBE Yutaka <gniibe@fsij.org>
-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");