Date: Sat, 16 Jan 2021 11:58:25 GMT From: Mariusz Zaborski <oshogbo@FreeBSD.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org Subject: git: de57c3d88258 - main - cat: style nits Message-ID: <202101161158.10GBwPtb093119@gitrepo.freebsd.org>
next in thread | raw e-mail | index | archive | help
The branch main has been updated by oshogbo: URL: https://cgit.FreeBSD.org/src/commit/?id=de57c3d8825896ee6dfbb4934095459f6836bf65 commit de57c3d8825896ee6dfbb4934095459f6836bf65 Author: Mariusz Zaborski <oshogbo@FreeBSD.org> AuthorDate: 2021-01-16 11:58:23 +0000 Commit: Mariusz Zaborski <oshogbo@FreeBSD.org> CommitDate: 2021-01-16 11:58:23 +0000 cat: style nits --- bin/cat/cat.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bin/cat/cat.c b/bin/cat/cat.c index 8ba6f6261ad4..764c97c7ad43 100644 --- a/bin/cat/cat.c +++ b/bin/cat/cat.c @@ -428,8 +428,7 @@ udom_open(const char *path, int flags) { struct addrinfo hints, *res, *res0; char rpath[PATH_MAX]; - int fd = -1; - int error, serrno; + int fd, error, serrno; cap_rights_t rights; /* @@ -437,6 +436,7 @@ udom_open(const char *path, int flags) */ bzero(&hints, sizeof(hints)); hints.ai_family = AF_LOCAL; + fd = -1; if (fileargs_realpath(fa, path, rpath) == NULL) return (-1);
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202101161158.10GBwPtb093119>