diff options
author | bde <bde@FreeBSD.org> | 2004-03-14 05:27:26 +0000 |
---|---|---|
committer | bde <bde@FreeBSD.org> | 2004-03-14 05:27:26 +0000 |
commit | 1e78a65d3aa6589373dc4e14d475393e9a7f984c (patch) | |
tree | 285d06553b104804dfc70333b3e12903b4d945a5 | |
parent | 07e9f5afcafa05803364f4238c2794141edf058c (diff) | |
download | FreeBSD-src-1e78a65d3aa6589373dc4e14d475393e9a7f984c.zip FreeBSD-src-1e78a65d3aa6589373dc4e14d475393e9a7f984c.tar.gz |
Fixed a misspelling of 0 as NULL.
-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); |