From: dtucker Date: Tue, 28 Feb 2023 08:45:24 +0000 (+0000) Subject: Explicitly ignore return from fchmod similar to other calls to X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=a4a4354d6a6136f25e8616a09f7d2e21e354b530;p=openbsd Explicitly ignore return from fchmod similar to other calls to prevent warning. --- diff --git a/usr.bin/ssh/ssh-keygen.c b/usr.bin/ssh/ssh-keygen.c index 78a858ba935..8d5aa800e3c 100644 --- a/usr.bin/ssh/ssh-keygen.c +++ b/usr.bin/ssh/ssh-keygen.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ssh-keygen.c,v 1.462 2023/02/10 04:56:30 djm Exp $ */ +/* $OpenBSD: ssh-keygen.c,v 1.463 2023/02/28 08:45:24 dtucker Exp $ */ /* * Author: Tatu Ylonen * Copyright (c) 1994 Tatu Ylonen , Espoo, Finland @@ -1314,7 +1314,7 @@ do_known_hosts(struct passwd *pw, const char *name, int find_host, unlink(tmp); fatal("fdopen: %s", strerror(oerrno)); } - fchmod(fd, sb.st_mode & 0644); + (void)fchmod(fd, sb.st_mode & 0644); inplace = 1; } /* XXX support identity_file == "-" for stdin */