[Mesa-dev] [PATCH v1 3/7] android: Mark gralloc_handle_t magic variable as const

Robert Foss robert.foss at collabora.com
Tue Jan 16 17:36:08 UTC 2018


Mark magic member of gralloc_handle_t as const.

Sign-off-by: Robert Foss <robert.foss at collabora.com>
Signed-off-by: Robert Foss <robert.foss at collabora.com>
---
 android/gralloc_handle.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/android/gralloc_handle.h b/android/gralloc_handle.h
index 647351eedaf7..e4ef8179f584 100644
--- a/android/gralloc_handle.h
+++ b/android/gralloc_handle.h
@@ -33,7 +33,7 @@ struct gralloc_handle_t {
 	native_handle_t base;
 
 	/* api variables */
-	int magic; /* differentiate between allocator impls */
+	const int magic; /* differentiate between allocator impls */
 	const uint32_t version; /* api version */
 
 	int prime_fd; /* dma-buf file descriptor */
-- 
2.14.1



More information about the mesa-dev mailing list