Use _PATH_DEVNULL instead of direct hardcoding.
MFC after: 2 weeks
This commit is contained in:
parent
3a8cff7804
commit
05212689bb
@ -178,7 +178,7 @@ main(int argc, char **argv)
|
||||
* devices. We can now use sysctl only.
|
||||
*/
|
||||
use_kvm = 0;
|
||||
kd = kvm_openfiles("/dev/null", "/dev/null", "/dev/null",
|
||||
kd = kvm_openfiles(_PATH_DEVNULL, _PATH_DEVNULL, _PATH_DEVNULL,
|
||||
O_RDONLY, errbuf);
|
||||
if (kd == NULL) {
|
||||
error("%s", errbuf);
|
||||
|
Loading…
x
Reference in New Issue
Block a user