diff options
-rw-r--r-- | lib/libc_r/uthread/uthread_init.c | 4 | ||||
-rw-r--r-- | lib/libkse/thread/thr_init.c | 4 | ||||
-rw-r--r-- | lib/libpthread/thread/thr_init.c | 4 |
3 files changed, 6 insertions, 6 deletions
diff --git a/lib/libc_r/uthread/uthread_init.c b/lib/libc_r/uthread/uthread_init.c index 30ec765..cac38dc 100644 --- a/lib/libc_r/uthread/uthread_init.c +++ b/lib/libc_r/uthread/uthread_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 diff --git a/lib/libkse/thread/thr_init.c b/lib/libkse/thread/thr_init.c index 30ec765..cac38dc 100644 --- a/lib/libkse/thread/thr_init.c +++ b/lib/libkse/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 diff --git a/lib/libpthread/thread/thr_init.c b/lib/libpthread/thread/thr_init.c index 30ec765..cac38dc 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 |