libutil++: Appease GCC -Wshadow warnings in constructors

Fixes:		937e92b5f7 ("libutil++: Add freebsd::fd_up class to manage file descriptors")
Fixes:		7be913e00d ("libutil++: Add freebsd::pidfile wrapper class around struct pidfh")
Sponsored by:	Chelsio Communications
This commit is contained in:
John Baldwin
2025-08-07 13:10:55 -04:00
parent b3340428f3
commit ca0d182dfe
+2 -2
View File
@@ -70,7 +70,7 @@ namespace freebsd {
class fd_up {
public:
fd_up() : fd(-1) {}
fd_up(int fd) : fd(fd) {}
fd_up(int _fd) : fd(_fd) {}
fd_up(fd_up &&other) : fd(other.release()) {}
fd_up(fd_up const &) = delete;
@@ -159,7 +159,7 @@ namespace freebsd {
class pidfile {
public:
pidfile() = default;
pidfile(struct pidfh *pfh) : pfh(pfh) {}
pidfile(struct pidfh *_pfh) : pfh(_pfh) {}
pidfile(pidfile &&other) : pfh(other.release()) {}
pidfile(pidfile const &) = delete;