summaryrefslogtreecommitdiffstats
path: root/lib/libm/src/s_cacosl.c
diff options
context:
space:
mode:
authormartynas <martynas@openbsd.org>2011-07-20 21:02:51 +0000
committermartynas <martynas@openbsd.org>2011-07-20 21:02:51 +0000
commit9fc1328242ddaa1ce1b291ba3cac4e2e6ecb0c1c (patch)
tree0007a7bc5bec14114108805415a13cccd795f009 /lib/libm/src/s_cacosl.c
parentDuring mailbox and special file checks, skip all files that can't (diff)
downloadwireguard-openbsd-9fc1328242ddaa1ce1b291ba3cac4e2e6ecb0c1c.tar.xz
wireguard-openbsd-9fc1328242ddaa1ce1b291ba3cac4e2e6ecb0c1c.zip
- Make constants const.
- Fix aliasing issue in s_frexpf.c; spotted by gcc. Many other ones were fixed in NetBSD long ago, but this one was forgotten. It looks like recently they fixed it too.
Diffstat (limited to 'lib/libm/src/s_cacosl.c')
-rw-r--r--lib/libm/src/s_cacosl.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/libm/src/s_cacosl.c b/lib/libm/src/s_cacosl.c
index 9b110337a80..e4d94596596 100644
--- a/lib/libm/src/s_cacosl.c
+++ b/lib/libm/src/s_cacosl.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: s_cacosl.c,v 1.2 2011/07/20 19:28:33 martynas Exp $ */
+/* $OpenBSD: s_cacosl.c,v 1.3 2011/07/20 21:02:51 martynas Exp $ */
/*
* Copyright (c) 2008 Stephen L. Moshier <steve@moshier.net>
@@ -50,7 +50,7 @@
#include <complex.h>
#include <math.h>
-static long double PIO2L = 1.570796326794896619231321691639751442098585L;
+static const long double PIO2L = 1.570796326794896619231321691639751442098585L;
long double complex
cacosl(long double complex z)