summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormartynas <martynas@openbsd.org>2011-07-25 16:21:22 +0000
committermartynas <martynas@openbsd.org>2011-07-25 16:21:22 +0000
commit8df23932ba4c8ebc0c240d6235d7206c531a8c84 (patch)
tree9edaa8d1e51bd16b23edd19f3b88e04492a1d92c
parentMake huge constants actually long, so they don't overflow and become (diff)
downloadwireguard-openbsd-8df23932ba4c8ebc0c240d6235d7206c531a8c84.tar.xz
wireguard-openbsd-8df23932ba4c8ebc0c240d6235d7206c531a8c84.zip
- Use strtof instead of casting strtod back to float (apprentice.c),
- Don't reimplement strndup (softmagic.c). OK millert@.
-rw-r--r--usr.bin/file/config.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/usr.bin/file/config.h b/usr.bin/file/config.h
index a3b56dc19e1..1cf2668d168 100644
--- a/usr.bin/file/config.h
+++ b/usr.bin/file/config.h
@@ -4,7 +4,7 @@
* but can still carefully import stuff from Christos' version.
*
* This file is in the public domain. Original Author Ian F. Darwin.
- * $OpenBSD: config.h,v 1.6 2011/01/10 20:59:42 deraadt Exp $
+ * $OpenBSD: config.h,v 1.7 2011/07/25 16:21:22 martynas Exp $
*/
/* header file issues. */
@@ -23,6 +23,8 @@
#define HAVE_STRERROR
#define HAVE_VSNPRINTF
#define HAVE_SNPRINTF
+#define HAVE_STRNDUP
+#define HAVE_STRTOF
/* Compiler issues */
#define SIZEOF_LONG_LONG 8