Source-Changes-HG archive

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

[src/trunk]: src/external/cddl/osnet/dist/lib/libdtrace/common Declare variab...



details:   https://anonhg.NetBSD.org/src/rev/c955ee70af34
branches:  trunk
changeset: 341594:c955ee70af34
user:      riz <riz%NetBSD.org@localhost>
date:      Thu Nov 12 22:10:48 2015 +0000

description:
Declare variables under the same conditions as their use.

diffstat:

 external/cddl/osnet/dist/lib/libdtrace/common/dt_lex.l |  5 ++++-
 1 files changed, 4 insertions(+), 1 deletions(-)

diffs (15 lines):

diff -r 07c6e8708c77 -r c955ee70af34 external/cddl/osnet/dist/lib/libdtrace/common/dt_lex.l
--- a/external/cddl/osnet/dist/lib/libdtrace/common/dt_lex.l    Thu Nov 12 20:14:55 2015 +0000
+++ b/external/cddl/osnet/dist/lib/libdtrace/common/dt_lex.l    Thu Nov 12 22:10:48 2015 +0000
@@ -430,7 +430,10 @@
 <S0>'{RGX_CHR}$        xyerror(D_CHR_NL, "newline encountered in character constant");
 
 <S0>'{RGX_CHR}'        {
-                       char *s, *p, *q;
+                       char *s;
+#if BYTE_ORDER == _LITTLE_ENDIAN
+                       char  *p, *q;
+#endif
                        size_t nbytes;
 
                        /*



Home | Main Index | Thread Index | Old Index