git: 880865783d9c - main - pmc(8): revert unnecessary lvalue reference change from prior commit

Enji Cooper <[email protected]>
Newsgroups gmane.os.freebsd.devel.cvs.src,gmane.os.freebsd.current.scm
Message-ID <[email protected]>
The branch main has been updated by ngie:

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

commit 880865783d9c3b807a26f4ea8ab3ef6ce1ca6ff8
Author:     Enji Cooper <[email protected]>
AuthorDate: 2026-08-10 01:39:58 +0000
Commit:     Enji Cooper <[email protected]>
CommitDate: 2026-08-10 01:42:07 +0000

    pmc(8): revert unnecessary lvalue reference change from prior commit
    
    I need to do more work before references can be accepted in other
    sections of the code. This was an unnecessary drive-by change that was
    not tested in `make universe`.
    
    Reported by:    CI
    Fixes:  fd809148 ("pmc(8): resolve -Wshadow issues")
---
 usr.sbin/pmc/view.hh | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/usr.sbin/pmc/view.hh b/usr.sbin/pmc/view.hh
index 9a0702c08803..b1e04a73e130 100644
--- a/usr.sbin/pmc/view.hh
+++ b/usr.sbin/pmc/view.hh
@@ -73,7 +73,7 @@ struct pmcinfo
 struct pmcinfox
 {
 	pmcinfox() : rate(0), event() { }
-	pmcinfox(uint32_t rate_, std::string &event_) : rate(rate_), event(event_) { }
+	pmcinfox(uint32_t rate_, std::string event_) : rate(rate_), event(event_) { }
 	~pmcinfox() { }
 	uint32_t			rate;
 	std::string			event;
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.