From d6eb2761330508d1c19f99ccdefefb1febbb81c4 Mon Sep 17 00:00:00 2001 From: NIIBE Yutaka Date: Tue, 26 Apr 2022 11:16:28 +0900 Subject: [PATCH] dirmngr: Fix for C90 compiler. * dirmngr/dirmngr.c (main): Declaration before a statement. -- Signed-off-by: NIIBE Yutaka --- dirmngr/dirmngr.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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");