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 redo previous, not needed.



details:   https://anonhg.NetBSD.org/src/rev/2f96d7e4eeff
branches:  trunk
changeset: 341616:2f96d7e4eeff
user:      christos <christos%NetBSD.org@localhost>
date:      Fri Nov 13 19:13:50 2015 +0000

description:
redo previous, not needed.

diffstat:

 usr.bin/xlint/lint1/scan.l |  15 ++++-----------
 1 files changed, 4 insertions(+), 11 deletions(-)

diffs (44 lines):

diff -r 33f017485bcd -r 2f96d7e4eeff usr.bin/xlint/lint1/scan.l
--- a/usr.bin/xlint/lint1/scan.l        Fri Nov 13 18:58:17 2015 +0000
+++ b/usr.bin/xlint/lint1/scan.l        Fri Nov 13 19:13:50 2015 +0000
@@ -1,5 +1,5 @@
 %{
-/* $NetBSD: scan.l,v 1.63 2015/11/13 16:04:58 christos Exp $ */
+/* $NetBSD: scan.l,v 1.64 2015/11/13 19:13:50 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.63 2015/11/13 16:04:58 christos Exp $");
+__RCSID("$NetBSD: scan.l,v 1.64 2015/11/13 19:13:50 christos Exp $");
 #endif
 
 #include <stdlib.h>
@@ -522,7 +522,7 @@
 {
        int     l_suffix, u_suffix;
        int     len;
-       const   char *cp, *sp;
+       const   char *cp;
        char    c, *eptr;
        tspec_t typ;
        uint64_t uq = 0;
@@ -569,14 +569,7 @@
 
        errno = 0;
 
-       if (cp[0] == '0' && (cp[1] == 'b' || cp[1] == 'B')) {
-               sp = cp + 2;
-               base = 2;
-       } else {
-               sp = cp;
-       }
-
-       uq = strtouq(sp, &eptr, base);
+       uq = strtouq(cp, &eptr, base);
        if (eptr != cp + len)
                LERROR("icon()");
        if (errno != 0)



Home | Main Index | Thread Index | Old Index