From ed0ed55f3e6c2e1a460d72fed270f6243dcf92a5 Mon Sep 17 00:00:00 2001 From: Robert Foss Date: Tue, 16 Jan 2018 15:19:15 +0100 Subject: android: Mark gralloc_handle_t magic variable as const Mark magic member of gralloc_handle_t as const. Signed-off-by: Robert Foss Reviewed-by: Rob Herring --- 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 7cbc8ee7..5d8a19ea 100644 --- a/android/gralloc_handle.h +++ b/android/gralloc_handle.h @@ -51,7 +51,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 */ -- cgit v1.2.3