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

Robert Foss robert.foss at collabora.com
Mon Jan 29 17:37:58 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 8abc83de4626..64196c0b40e7 100644
--- a/android/gralloc_handle.h
+++ b/android/gralloc_handle.h
@@ -52,7 +52,7 @@ struct gralloc_handle_t {
 	int prime_fd;
 
 	/* api variables */
-	int magic; /* differentiate between allocator impls */
+	const int magic; /* differentiate between allocator impls */
 	const uint32_t version; /* api version */
 
 	int width; /* width of buffer in pixels */
-- 
2.14.1



More information about the mesa-dev mailing list