summaryrefslogtreecommitdiffstats
path: root/usr.sbin/wormcontrol/wormcontrol.c
diff options
context:
space:
mode:
authorpeter <peter@FreeBSD.org>1999-10-01 14:12:46 +0000
committerpeter <peter@FreeBSD.org>1999-10-01 14:12:46 +0000
commitc2e48d480ff67511a6d0d8c9b6c05e7ab2261215 (patch)
tree32fe776e50e533a886391f437f748344d1e96f52 /usr.sbin/wormcontrol/wormcontrol.c
parentb4a6e6fbe9a9691086d81e9ae5a93d0f855a7ed7 (diff)
downloadFreeBSD-src-c2e48d480ff67511a6d0d8c9b6c05e7ab2261215.zip
FreeBSD-src-c2e48d480ff67511a6d0d8c9b6c05e7ab2261215.tar.gz
Use the sys/wormio.h definitions of CDRIOCNEXTWRITEABLEADDR and
CDRIOCBLANK ioctls.
Diffstat (limited to 'usr.sbin/wormcontrol/wormcontrol.c')
-rw-r--r--usr.sbin/wormcontrol/wormcontrol.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/usr.sbin/wormcontrol/wormcontrol.c b/usr.sbin/wormcontrol/wormcontrol.c
index 81f857a..de793df 100644
--- a/usr.sbin/wormcontrol/wormcontrol.c
+++ b/usr.sbin/wormcontrol/wormcontrol.c
@@ -156,13 +156,11 @@ main(int argc, char **argv)
err(EX_IOERR, "ioctl(WORMIOFIXATION)");
}
else if (eq(argv[0], "blank")) {
-#define CDRIOCBLANK _IO('c',100) /* Blank a CDRW disc */
if (ioctl(fd, CDRIOCBLANK) == -1)
err(EX_IOERR, "ioctl(CDRIOCBLANK)");
}
else if (eq(argv[0], "nextwriteable")) {
int addr;
-#define CDRIOCNEXTWRITEABLEADDR _IOR('c',101,int)
if (ioctl(fd, CDRIOCNEXTWRITEABLEADDR, &addr) == -1)
err(EX_IOERR, "ioctl(CDRIOCNEXTWRITEABLEADDR)");
printf("%d\n", addr);
OpenPOWER on IntegriCloud