summaryrefslogtreecommitdiffstats
path: root/sys/arch/sparc
diff options
context:
space:
mode:
authorkettenis <kettenis@openbsd.org>2013-08-07 15:33:59 +0000
committerkettenis <kettenis@openbsd.org>2013-08-07 15:33:59 +0000
commit8bc47e7225a836e79ddc9dd24aa148f7ee200d1c (patch)
tree8641faba819b37c540814d65cd1a1b6a81c064a6 /sys/arch/sparc
parentsimple inaccurate implementation of lrint* functions on vax, just so (diff)
downloadwireguard-openbsd-8bc47e7225a836e79ddc9dd24aa148f7ee200d1c.tar.xz
wireguard-openbsd-8bc47e7225a836e79ddc9dd24aa148f7ee200d1c.zip
We uniformly define size_t to be unsigned long and ssize_t to be long. Make
sure that SIZE_MAX and SSIZE_MAX are defined as constants with a matching type on all are architectures. ok millert@, matthew@
Diffstat (limited to 'sys/arch/sparc')
-rw-r--r--sys/arch/sparc/include/limits.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/sys/arch/sparc/include/limits.h b/sys/arch/sparc/include/limits.h
index ea9cf0b2de6..ca45199afb7 100644
--- a/sys/arch/sparc/include/limits.h
+++ b/sys/arch/sparc/include/limits.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: limits.h,v 1.12 2009/11/27 19:54:35 guenther Exp $ */
+/* $OpenBSD: limits.h,v 1.13 2013/08/07 15:34:02 kettenis Exp $ */
/* $NetBSD: limits.h,v 1.7 1996/01/05 18:10:57 pk Exp $ */
/*
@@ -36,13 +36,13 @@
#if __POSIX_VISIBLE || __XPG_VISIBLE
#ifndef SIZE_MAX
-#define SIZE_MAX UINT_MAX /* max value for a size_t */
+#define SIZE_MAX ULONG_MAX /* max value for a size_t */
#endif
-#define SSIZE_MAX INT_MAX /* max value for a ssize_t */
+#define SSIZE_MAX LONG_MAX /* max value for a ssize_t */
#endif
#if __BSD_VISIBLE
-#define SIZE_T_MAX UINT_MAX /* max value for a size_t (historic) */
+#define SIZE_T_MAX ULONG_MAX /* max value for a size_t (historic) */
/* GCC requires that quad constants be written as expressions. */
#define UQUAD_MAX ((u_quad_t)0-1) /* max value for a uquad_t */