diff options
-rw-r--r-- | lib/libkse/thread/thr_concurrency.c | 2 | ||||
-rw-r--r-- | lib/libpthread/thread/thr_concurrency.c | 2 | ||||
-rw-r--r-- | libexec/getty/chat.c | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/lib/libkse/thread/thr_concurrency.c b/lib/libkse/thread/thr_concurrency.c index e1d41e3..59e8550 100644 --- a/lib/libkse/thread/thr_concurrency.c +++ b/lib/libkse/thread/thr_concurrency.c @@ -157,7 +157,7 @@ _thr_setmaxconcurrency(void) int ret; len = sizeof(vcpu); - ret = sysctlbyname("kern.threads.virtual_cpu", &vcpu, &len, NULL, NULL); + ret = sysctlbyname("kern.threads.virtual_cpu", &vcpu, &len, NULL, 0); if (ret == 0 && vcpu > 0) ret = _thr_setconcurrency(vcpu); return (ret); diff --git a/lib/libpthread/thread/thr_concurrency.c b/lib/libpthread/thread/thr_concurrency.c index e1d41e3..59e8550 100644 --- a/lib/libpthread/thread/thr_concurrency.c +++ b/lib/libpthread/thread/thr_concurrency.c @@ -157,7 +157,7 @@ _thr_setmaxconcurrency(void) int ret; len = sizeof(vcpu); - ret = sysctlbyname("kern.threads.virtual_cpu", &vcpu, &len, NULL, NULL); + ret = sysctlbyname("kern.threads.virtual_cpu", &vcpu, &len, NULL, 0); if (ret == 0 && vcpu > 0) ret = _thr_setconcurrency(vcpu); return (ret); diff --git a/libexec/getty/chat.c b/libexec/getty/chat.c index 4faae72..8256bb1 100644 --- a/libexec/getty/chat.c +++ b/libexec/getty/chat.c @@ -355,7 +355,7 @@ chat_expect(const char *str) /* See if we can resync on a * partial match in our buffer */ - while (j < i && memcmp(got + j, str, i - j) != NULL) + while (j < i && memcmp(got + j, str, i - j) != 0) j++; if (j < i) memcpy(got, got + j, i - j); |