summaryrefslogtreecommitdiff
path: root/src/udev
diff options
context:
space:
mode:
authorThomas Hindoe Paaboel Andersen <phomes@gmail.com>2015-08-06 00:32:25 +0200
committerThomas Hindoe Paaboel Andersen <phomes@gmail.com>2015-08-06 00:49:45 +0200
commit756775814cf69471f74ce853745bba69f2ba94ef (patch)
tree0cd99890a1cce0671f07761d077db96ee1f43f79 /src/udev
parent511d2ffc8cc4e6c6b528aa96c4096f57bc52226e (diff)
tree-wide: do not return error codes as bool
Diffstat (limited to 'src/udev')
-rw-r--r--src/udev/cdrom_id/cdrom_id.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/udev/cdrom_id/cdrom_id.c b/src/udev/cdrom_id/cdrom_id.c
index 3d74ae50f1..775da0355d 100644
--- a/src/udev/cdrom_id/cdrom_id.c
+++ b/src/udev/cdrom_id/cdrom_id.c
@@ -106,11 +106,11 @@ static bool is_mounted(const char *device)
bool mounted = false;
if (stat(device, &statbuf) < 0)
- return -ENODEV;
+ return false;
fp = fopen("/proc/self/mountinfo", "re");
if (fp == NULL)
- return -ENOSYS;
+ return false;
while (fscanf(fp, "%*s %*s %i:%i %*[^\n]", &maj, &min) == 2) {
if (makedev(maj, min) == statbuf.st_rdev) {
mounted = true;