summaryrefslogtreecommitdiffstats
path: root/lib/libc/regex/regex2.h
diff options
context:
space:
mode:
authormillert <millert@openbsd.org>1997-04-12 18:22:22 +0000
committermillert <millert@openbsd.org>1997-04-12 18:22:22 +0000
commitb37692f881dae1acc9690dd3df389cbd7edd0705 (patch)
treea39d170d37d0c68b0bdb0572e3a25691486e6713 /lib/libc/regex/regex2.h
parentBe a bit more specific about EINVAL and negative offsets. (diff)
downloadwireguard-openbsd-b37692f881dae1acc9690dd3df389cbd7edd0705.tar.xz
wireguard-openbsd-b37692f881dae1acc9690dd3df389cbd7edd0705.zip
long -> int to fix 64bit issues. This breaks 16bit machines but since we don't have any 16bit ports...) The alternative is to use int32_t's but then this code will break when/if int > 32bits which is not so unlikely. Fixes NetBSD PR #3450 from Ross Harvey (but in a different way)
Diffstat (limited to 'lib/libc/regex/regex2.h')
-rw-r--r--lib/libc/regex/regex2.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/libc/regex/regex2.h b/lib/libc/regex/regex2.h
index 986c98aff65..6e720e24088 100644
--- a/lib/libc/regex/regex2.h
+++ b/lib/libc/regex/regex2.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: regex2.h,v 1.2 1996/08/19 08:31:14 tholo Exp $ */
+/* $OpenBSD: regex2.h,v 1.3 1997/04/12 18:22:24 millert Exp $ */
/*-
* Copyright (c) 1992, 1993, 1994 Henry Spencer.
@@ -75,8 +75,8 @@
* In state representations, an operator's bit is on to signify a state
* immediately *preceding* "execution" of that operator.
*/
-typedef unsigned long sop; /* strip operator */
-typedef long sopno;
+typedef unsigned sop; /* strip operator */
+typedef int sopno;
#define OPRMASK 0xf8000000
#define OPDMASK 0x07ffffff
#define OPSHIFT ((unsigned)27)