diff options
Diffstat (limited to 'usr.sbin/cdcontrol/cdcontrol.c')
-rw-r--r-- | usr.sbin/cdcontrol/cdcontrol.c | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/usr.sbin/cdcontrol/cdcontrol.c b/usr.sbin/cdcontrol/cdcontrol.c index 3723217..77230b0 100644 --- a/usr.sbin/cdcontrol/cdcontrol.c +++ b/usr.sbin/cdcontrol/cdcontrol.c @@ -52,10 +52,6 @@ __FBSDID("$FreeBSD$"); # define DEFAULT_CD_DRIVE "/dev/cd0" #endif -#ifndef DEFAULT_CD_PARTITION -# define DEFAULT_CD_PARTITION "c" -#endif - #define CMD_DEBUG 1 #define CMD_EJECT 2 #define CMD_HELP 3 @@ -1249,11 +1245,6 @@ int open_cd () fd = open (devbuf, O_RDONLY); - if (fd < 0 && errno == ENOENT) { - strcat (devbuf, DEFAULT_CD_PARTITION); - fd = open (devbuf, O_RDONLY); - } - if (fd < 0) { if (errno == ENXIO) { /* ENXIO has an overloaded meaning here. |