mirror of
git://git.gnupg.org/gnupg.git
synced 2025-01-21 14:47:03 +01:00
dirmngr: Fix for C90 compiler.
* dirmngr/dirmngr.c (main): Declaration before a statement. -- Signed-off-by: NIIBE Yutaka <gniibe@fsij.org>
This commit is contained in:
parent
03e8668dbb
commit
d6eb276133
@ -1275,6 +1275,8 @@ main (int argc, char **argv)
|
|||||||
#ifndef HAVE_W32_SYSTEM
|
#ifndef HAVE_W32_SYSTEM
|
||||||
else if (cmd == aSupervised)
|
else if (cmd == aSupervised)
|
||||||
{
|
{
|
||||||
|
struct stat statbuf;
|
||||||
|
|
||||||
if (!opt.quiet)
|
if (!opt.quiet)
|
||||||
log_info(_("WARNING: \"%s\" is a deprecated option\n"), "--supervised");
|
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
|
We will also not detach from the controlling process or close
|
||||||
stderr; the supervisor should handle all of that. */
|
stderr; the supervisor should handle all of that. */
|
||||||
struct stat statbuf;
|
|
||||||
if (fstat (3, &statbuf) == -1 && errno == EBADF)
|
if (fstat (3, &statbuf) == -1 && errno == EBADF)
|
||||||
{
|
{
|
||||||
log_error ("file descriptor 3 must be validin --supervised mode\n");
|
log_error ("file descriptor 3 must be validin --supervised mode\n");
|
||||||
|
Loading…
x
Reference in New Issue
Block a user