diff options
author | Tomi Valkeinen <tomi.valkeinen@ti.com> | 2019-01-11 11:33:37 +0200 |
---|---|---|
committer | Tomi Valkeinen <tomi.valkeinen@ti.com> | 2019-01-14 09:27:28 +0200 |
commit | 9f5bcf2393b36d0007664faf1b6b43ea54c7ea62 (patch) | |
tree | e172e4c18ddbfd1de212a05240ade7c493c1fcd1 | |
parent | c0093c91f0fa2fd6a5b9d1b206a6f44dcd55bfb5 (diff) |
card: cleanup fd usage
Use m_fd consistently.
Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
-rw-r--r-- | kms++/src/card.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/kms++/src/card.cpp b/kms++/src/card.cpp index ad6fc38..ea0d6a7 100644 --- a/kms++/src/card.cpp +++ b/kms++/src/card.cpp @@ -32,7 +32,7 @@ Card::Card(const std::string& device) int r; - r = drmSetMaster(fd); + r = drmSetMaster(m_fd); m_is_master = r == 0; if (getenv("KMSXX_DISABLE_UNIVERSAL_PLANES") == 0) { @@ -54,7 +54,7 @@ Card::Card(const std::string& device) #endif uint64_t has_dumb; - r = drmGetCap(fd, DRM_CAP_DUMB_BUFFER, &has_dumb); + r = drmGetCap(m_fd, DRM_CAP_DUMB_BUFFER, &has_dumb); if (r || !has_dumb) throw invalid_argument("Dumb buffers not available"); |