Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 21 Oct 2021 00:10:55 GMT
From:      Konstantin Belousov <kib@FreeBSD.org>
To:        src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org
Subject:   git: ca8c576d10e2 - main - ldd: style
Message-ID:  <202110210010.19L0AtMN024871@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch main has been updated by kib:

URL: https://cgit.FreeBSD.org/src/commit/?id=ca8c576d10e22830d0c7ac865af21aad9ae44181

commit ca8c576d10e22830d0c7ac865af21aad9ae44181
Author:     Konstantin Belousov <kib@FreeBSD.org>
AuthorDate: 2021-10-12 11:39:32 +0000
Commit:     Konstantin Belousov <kib@FreeBSD.org>
CommitDate: 2021-10-21 00:09:03 +0000

    ldd: style
    
    Reviewed by:    arichardson, jhb
    Sponsored by:   The FreeBSD Foundation
    MFC after:      1 week
    Differential revision:  https://reviews.freebsd.org/D32464
---
 usr.bin/ldd/ldd.c | 6 ++----
 1 file changed, 2 insertions(+), 4 deletions(-)

diff --git a/usr.bin/ldd/ldd.c b/usr.bin/ldd/ldd.c
index 3353345d549d..ee3f2070598d 100644
--- a/usr.bin/ldd/ldd.c
+++ b/usr.bin/ldd/ldd.c
@@ -134,7 +134,7 @@ int
 main(int argc, char *argv[])
 {
 	char *fmt1, *fmt2;
-	int rval, c, aflag;
+	int aflag, c, fd, rval, status, is_shlib, rv, type;
 
 	aflag = 0;
 	fmt1 = fmt2 = NULL;
@@ -167,8 +167,6 @@ main(int argc, char *argv[])
 
 	rval = 0;
 	for (; argc > 0; argc--, argv++) {
-		int fd, status, is_shlib, rv, type;
-
 		if ((fd = open(*argv, O_RDONLY, 0)) < 0) {
 			warn("%s", *argv);
 			rval |= 1;
@@ -244,7 +242,7 @@ main(int argc, char *argv[])
 		}
 	}
 
-	return rval;
+	return (rval);
 }
 
 static void



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202110210010.19L0AtMN024871>