mirror of
https://git.FreeBSD.org/src.git
synced 2025-01-21 15:45:02 +00:00
Use _PATH_DEVNULL instead of direct hardcoding.
MFC after: 2 weeks
This commit is contained in:
parent
3a8cff7804
commit
05212689bb
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=288344
@ -178,7 +178,7 @@ main(int argc, char **argv)
|
|||||||
* devices. We can now use sysctl only.
|
* devices. We can now use sysctl only.
|
||||||
*/
|
*/
|
||||||
use_kvm = 0;
|
use_kvm = 0;
|
||||||
kd = kvm_openfiles("/dev/null", "/dev/null", "/dev/null",
|
kd = kvm_openfiles(_PATH_DEVNULL, _PATH_DEVNULL, _PATH_DEVNULL,
|
||||||
O_RDONLY, errbuf);
|
O_RDONLY, errbuf);
|
||||||
if (kd == NULL) {
|
if (kd == NULL) {
|
||||||
error("%s", errbuf);
|
error("%s", errbuf);
|
||||||
|
Loading…
Reference in New Issue
Block a user