aboutsummaryrefslogtreecommitdiff
path: root/usr.bin/diff/diffreg.c
diff options
context:
space:
mode:
authorTom Jones <thj@FreeBSD.org>2022-02-18 15:07:52 +0000
committerTom Jones <thj@FreeBSD.org>2022-02-18 15:09:57 +0000
commit8f79bd9b85716c495c2741ac25db37e8d71f22f7 (patch)
treea362598eabda8b66c6d0443dac9925c1616753fd /usr.bin/diff/diffreg.c
parent3ca204c97aa74a6509ccf59ff421fed2e9a11d4f (diff)
Diffstat (limited to 'usr.bin/diff/diffreg.c')
-rw-r--r--usr.bin/diff/diffreg.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/usr.bin/diff/diffreg.c b/usr.bin/diff/diffreg.c
index 995843f9e539..ae815aa4e01f 100644
--- a/usr.bin/diff/diffreg.c
+++ b/usr.bin/diff/diffreg.c
@@ -1419,7 +1419,8 @@ match_function(const long *f, int pos, FILE *fp)
strlcpy(lastbuf, buf, sizeof(lastbuf));
lastmatchline = pos;
return (lastbuf);
- } else if (isalpha(buf[0]) || buf[0] == '_' || buf[0] == '$') {
+ } else if (isalpha(buf[0]) || buf[0] == '_' || buf[0] == '$'
+ || buf[0] == '-' || buf[0] == '+') {
if (begins_with(buf, "private:")) {
if (!state)
state = " (private)";