summaryrefslogtreecommitdiff
path: root/src/lib/libc/stdlib/strtoull.c
diff options
context:
space:
mode:
authormartynas <>2013-03-28 18:09:38 +0000
committermartynas <>2013-03-28 18:09:38 +0000
commit43ae065d4313c8a0233a8011dada31d22939c395 (patch)
tree7388b06e5c323564802e68dcfea52730269ef287 /src/lib/libc/stdlib/strtoull.c
parentff0d1de40e1753f3ad3f490475d4624605ee6d92 (diff)
downloadopenbsd-43ae065d4313c8a0233a8011dada31d22939c395.tar.gz
openbsd-43ae065d4313c8a0233a8011dada31d22939c395.tar.bz2
openbsd-43ae065d4313c8a0233a8011dada31d22939c395.zip
Switch libc and libm to use strong aliases rather than weak aliases
where appropriate. Among other things makes the symbols consistent across all architectures (notably where ldbl mantissa is 53 bits). While at it, kill unused LINTLIBRARY/PROTOLIB1 cruft which was there to trick lint into recording the right prototypes for aliased functions. Most of the work done at the awesome n2k13 hackathon. Agreed by kettenis@, guenther@, matthew@.
Diffstat (limited to 'src/lib/libc/stdlib/strtoull.c')
-rw-r--r--src/lib/libc/stdlib/strtoull.c13
1 files changed, 2 insertions, 11 deletions
diff --git a/src/lib/libc/stdlib/strtoull.c b/src/lib/libc/stdlib/strtoull.c
index 37859776f9..28f613a087 100644
--- a/src/lib/libc/stdlib/strtoull.c
+++ b/src/lib/libc/stdlib/strtoull.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: strtoull.c,v 1.5 2005/08/08 08:05:37 espie Exp $ */ 1/* $OpenBSD: strtoull.c,v 1.6 2013/03/28 18:09:38 martynas Exp $ */
2/*- 2/*-
3 * Copyright (c) 1992 The Regents of the University of California. 3 * Copyright (c) 1992 The Regents of the University of California.
4 * All rights reserved. 4 * All rights reserved.
@@ -103,13 +103,4 @@ strtoull(const char *nptr, char **endptr, int base)
103 return (acc); 103 return (acc);
104} 104}
105 105
106#ifdef __weak_alias 106__strong_alias(strtouq, strtoull);
107__weak_alias(strtouq, strtoull);
108#else
109u_quad_t
110strtouq(const char *nptr, char **endptr, int base)
111{
112
113 return ((u_quad_t)strtoull(nptr, endptr, base));
114}
115#endif