git: 0311fe403d35 - main - devname(3): apply S_ISBLK() to type, not dev_t
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Sat, 28 Jan 2023 18:05:10 UTC
The branch main has been updated by kib: URL: https://cgit.FreeBSD.org/src/commit/?id=0311fe403d35f6241fa94104c4b92c9d73214cbc commit 0311fe403d35f6241fa94104c4b92c9d73214cbc Author: Alexander Naumochkin <alexander.naumochkin@gmail.com> AuthorDate: 2023-01-28 13:22:50 +0000 Commit: Konstantin Belousov <kib@FreeBSD.org> CommitDate: 2023-01-28 18:04:35 +0000 devname(3): apply S_ISBLK() to type, not dev_t PR: 269190 Reviewed by: kib MFC after: 1 week --- lib/libc/gen/devname.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/libc/gen/devname.c b/lib/libc/gen/devname.c index e519b505f1f8..55e6279a25ce 100644 --- a/lib/libc/gen/devname.c +++ b/lib/libc/gen/devname.c @@ -48,7 +48,7 @@ devname_r(dev_t dev, mode_t type, char *buf, int len) int i; size_t j; - if (dev == NODEV || !(S_ISCHR(type) || S_ISBLK(dev))) { + if (dev == NODEV || !(S_ISCHR(type) || S_ISBLK(type))) { strlcpy(buf, "#NODEV", len); return (buf); }