result = ioctl(fd, CDROM_GET_CAPABILITY, NULL);
if (result < 0) {
- info("CDROM_GET_CABILITY failed for '%s'", node);
+ info("CDROM_GET_CAPABILITY failed for '%s'", node);
rc = 3;
goto close;
}
if (result & CDC_RAM)
printf("ID_CDROM_RAM=1\n");
- goto close;
-
close:
close(fd);
exit: