summaryrefslogtreecommitdiff
path: root/usr/src/lib/libc/port/gen/strtoull.c
diff options
context:
space:
mode:
Diffstat (limited to 'usr/src/lib/libc/port/gen/strtoull.c')
-rw-r--r--usr/src/lib/libc/port/gen/strtoull.c17
1 files changed, 7 insertions, 10 deletions
diff --git a/usr/src/lib/libc/port/gen/strtoull.c b/usr/src/lib/libc/port/gen/strtoull.c
index 393056a459..6d474eded6 100644
--- a/usr/src/lib/libc/port/gen/strtoull.c
+++ b/usr/src/lib/libc/port/gen/strtoull.c
@@ -2,9 +2,8 @@
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
- * Common Development and Distribution License, Version 1.0 only
- * (the "License"). You may not use this file except in compliance
- * with the License.
+ * Common Development and Distribution License (the "License").
+ * You may not use this file except in compliance with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* or http://www.opensolaris.org/os/licensing.
@@ -19,20 +18,18 @@
*
* CDDL HEADER END
*/
+
/*
- * Copyright 2004 Sun Microsystems, Inc. All rights reserved.
+ * Copyright 2008 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
-#pragma ident "%Z%%M% %I% %E% SMI"
-
/* Copyright (c) 1988 AT&T */
/* All Rights Reserved */
+#pragma ident "%Z%%M% %I% %E% SMI"
-#pragma weak strtoull = _strtoull
-
-#include "synonyms.h"
+#include "lint.h"
#include <errno.h>
#include <ctype.h>
#include <limits.h>
@@ -100,7 +97,7 @@ strtoull(const char *str, char **nptr, int base)
if (!lisalnum(c) || (xx = DIGIT(c)) >= base)
return (0); /* no number formed */
if (base == 16 && c == '0' && (ustr[1] == 'x' || ustr[1] == 'X') &&
- isxdigit(ustr[2]))
+ isxdigit(ustr[2]))
c = *(ustr += 2); /* skip over leading "0x" or "0X" */
multmax = ullong_max / (u_longlong_t)base;