1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-02 08:32:16 +00:00

Fixed a misspelling of 0 as NULL.

This commit is contained in:
Bruce Evans 2004-03-14 05:27:26 +00:00
parent 43a6c75a7a
commit 2dc8d58f59
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=126952
3 changed files with 3 additions and 3 deletions

View File

@ -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);

View File

@ -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);

View File

@ -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);