android: Mark gralloc_handle_t magic variable as const

Mark magic member of gralloc_handle_t as const.

Signed-off-by: Robert Foss <robert.foss@collabora.com>
Reviewed-by: Rob Herring <robh@kernel.org>
main
Robert Foss 2018-01-16 15:19:15 +01:00
parent 76cd0af399
commit ed0ed55f3e
No known key found for this signature in database
GPG Key ID: B79A0B6A11EEF727
1 changed files with 1 additions and 1 deletions

View File

@ -51,7 +51,7 @@ struct gralloc_handle_t {
int prime_fd; int prime_fd;
/* api variables */ /* api variables */
int magic; /* differentiate between allocator impls */ const int magic; /* differentiate between allocator impls */
const uint32_t version; /* api version */ const uint32_t version; /* api version */
int width; /* width of buffer in pixels */ int width; /* width of buffer in pixels */