diff options
| author | Daniel Eischen <deischen@FreeBSD.org> | 2001-12-18 02:02:59 +0000 |
|---|---|---|
| committer | Daniel Eischen <deischen@FreeBSD.org> | 2001-12-18 02:02:59 +0000 |
| commit | 7512c816c0b17a25866e5498af24fb44add53f3a (patch) | |
| tree | 1330dcee4073e51059550bcd1622e50c3b336afa /lib/libpthread/thread/thr_init.c | |
| parent | 9669bb479ad8d5934ce8cda9284b5a4d2f12d74d (diff) | |
Notes
Diffstat (limited to 'lib/libpthread/thread/thr_init.c')
| -rw-r--r-- | lib/libpthread/thread/thr_init.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/libpthread/thread/thr_init.c b/lib/libpthread/thread/thr_init.c index 30ec765bfc24..cac38dc3f1d4 100644 --- a/lib/libpthread/thread/thr_init.c +++ b/lib/libpthread/thread/thr_init.c @@ -269,9 +269,9 @@ _thread_init(void) /* Find the stack top */ mib[0] = CTL_KERN; mib[1] = KERN_USRSTACK; - len = sizeof (int); + len = sizeof (_usrstack); if (sysctl(mib, 2, &_usrstack, &len, NULL, 0) == -1) - _usrstack = USRSTACK; + _usrstack = (void *)USRSTACK; /* * Create a red zone below the main stack. All other stacks are * constrained to a maximum size by the paramters passed to |
