]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
MFC r315360:
authorngie <ngie@FreeBSD.org>
Thu, 23 Mar 2017 04:50:44 +0000 (04:50 +0000)
committerngie <ngie@FreeBSD.org>
Thu, 23 Mar 2017 04:50:44 +0000 (04:50 +0000)
commitef554f759ea83834b62de116498300bba47c9ec4
treec9cafd2b3c577df8befa91ce38c87e820c4c7516
parent5b972b6c9ce470690a1a551e96cacdb85a4873fb
MFC r315360:

Return NULL instead of 0 on failure in _kvm_open, kvm_open{,2,files}

This is being done for the following reasons:
- kvm_open(3), etc says they will return NULL.
- NULL by definition is (void*)0 per POSIX, but can be redefined,
  depending on the compiler, etc.
lib/libkvm/kvm.c