#include "../../udev/udev.h"
-#ifndef ARRAY_SIZE
-#define ARRAY_SIZE(a) (sizeof(a) / sizeof(a[0]))
-#endif
-
static int debug;
static void log_fn(struct udev *udev, int priority,
}
/* check drive */
- if (cd_inquiry(udev, fd) < 0) {
- rc = 2;
- goto exit;
- }
+ if (cd_inquiry(udev, fd) < 0)
+ goto print;
/* read drive and possibly current profile */
if (cd_profiles(udev, fd) < 0)