Module Name:    src
Committed By:   christos
Date:           Fri Nov 13 19:13:50 UTC 2015

Modified Files:
        src/usr.bin/xlint/lint1: scan.l

Log Message:
redo previous, not needed.


To generate a diff of this commit:
cvs rdiff -u -r1.63 -r1.64 src/usr.bin/xlint/lint1/scan.l

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/usr.bin/xlint/lint1/scan.l
diff -u src/usr.bin/xlint/lint1/scan.l:1.63 src/usr.bin/xlint/lint1/scan.l:1.64
--- src/usr.bin/xlint/lint1/scan.l:1.63	Fri Nov 13 11:04:58 2015
+++ src/usr.bin/xlint/lint1/scan.l	Fri Nov 13 14:13:50 2015
@@ -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 @@ icon(int base)
 {
 	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 @@ icon(int base)
 
 	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)

Reply via email to