Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/usr.bin/xlint/lint1 only return attributes if looking for at...



details:   https://anonhg.NetBSD.org/src/rev/d6fc440d856c
branches:  trunk
changeset: 820100:d6fc440d856c
user:      christos <christos%NetBSD.org@localhost>
date:      Thu Dec 29 19:40:35 2016 +0000

description:
only return attributes if looking for attributes

diffstat:

 usr.bin/xlint/lint1/scan.l |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (28 lines):

diff -r aa7c97d73ce4 -r d6fc440d856c usr.bin/xlint/lint1/scan.l
--- a/usr.bin/xlint/lint1/scan.l        Thu Dec 29 19:40:21 2016 +0000
+++ b/usr.bin/xlint/lint1/scan.l        Thu Dec 29 19:40:35 2016 +0000
@@ -1,5 +1,5 @@
 %{
-/* $NetBSD: scan.l,v 1.71 2016/12/29 18:44:49 christos Exp $ */
+/* $NetBSD: scan.l,v 1.72 2016/12/29 19:40:35 christos Exp $ */
 
 /*
  * Copyright (c) 1996 Christopher G. Demetriou.  All Rights Reserved.
@@ -35,7 +35,7 @@
 
 #include <sys/cdefs.h>
 #if defined(__RCSID) && !defined(lint)
-__RCSID("$NetBSD: scan.l,v 1.71 2016/12/29 18:44:49 christos Exp $");
+__RCSID("$NetBSD: scan.l,v 1.72 2016/12/29 19:40:35 christos Exp $");
 #endif
 
 #include <stdlib.h>
@@ -523,7 +523,7 @@
                                struct kwtab *kw = sym->s_keyw;
                                if (!kw->kw_attr || attron)
                                        return (sym);
-                       } else if (sym->s_kind == symtyp)
+                       } else if (!attron && sym->s_kind == symtyp)
                                return sym;
                }
        }



Home | Main Index | Thread Index | Old Index