diff options
author | jhb <jhb@FreeBSD.org> | 2000-06-28 22:28:50 +0000 |
---|---|---|
committer | jhb <jhb@FreeBSD.org> | 2000-06-28 22:28:50 +0000 |
commit | 033721fb7a75fd05ed0f793c8213356c46a8a9d1 (patch) | |
tree | e96ba5509252157fd997508ad46731fc923d92a3 /lib/libdisk/tst01.c | |
parent | 9997aef57dfa8d12364dfdef7ba1867545f09021 (diff) | |
download | FreeBSD-src-033721fb7a75fd05ed0f793c8213356c46a8a9d1.zip FreeBSD-src-033721fb7a75fd05ed0f793c8213356c46a8a9d1.tar.gz |
_PATH_DEV'ify libdisk
Diffstat (limited to 'lib/libdisk/tst01.c')
-rw-r--r-- | lib/libdisk/tst01.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/libdisk/tst01.c b/lib/libdisk/tst01.c index 9702ff2..1ad9421 100644 --- a/lib/libdisk/tst01.c +++ b/lib/libdisk/tst01.c @@ -21,6 +21,7 @@ #include <readline/history.h> #endif #include <sys/types.h> +#include <paths.h> #include "libdisk.h" u_char mbr[] = { @@ -91,7 +92,7 @@ Scan_Disk(struct disk *d) u_long l; int i,j,fd; - strcpy(device,"/dev/"); + strcpy(device,_PATH_DEV); strcat(device,d->name); fd = open(device,O_RDWR); |