summaryrefslogtreecommitdiff
path: root/kms++
diff options
context:
space:
mode:
Diffstat (limited to 'kms++')
-rw-r--r--kms++/src/card.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/kms++/src/card.cpp b/kms++/src/card.cpp
index d0af8a4..c26e4f2 100644
--- a/kms++/src/card.cpp
+++ b/kms++/src/card.cpp
@@ -70,7 +70,7 @@ static int open_first_kms_device()
throw runtime_error("No modesetting DRM card found");
}
-static int open_device_by_path(string path)
+static int open_device_by_path(const string& path)
{
int fd = open(path.c_str(), O_RDWR | O_CLOEXEC);
if (fd < 0)