android.c: Fix compile time warnings.

Fixes compiler warnings. These warnings were introduced by:

  fd9e5ef7 libsepol: use constant keys in hashtab functions

Warnings fixed:

[  4% 5/113] host C: libsepol <= external/selinux/libsepol/cil/src/android.c
external/selinux/libsepol/cil/src/android.c:857:31: warning: incompatible pointer types passing 'unsigned int (hashtab_t, const hashtab_key_t)' (aka 'unsigned int (struct hashtab_val *, char *const)') to parameter of type 'unsigned int (*)(hashtab_t, const_hashtab_key_t)' (aka 'unsigned int (*)(struct hashtab_val *, const char *)') [-Wincompatible-pointer-types]
        ver_map_tab = hashtab_create(ver_map_hash_val, ver_map_key_cmp, VER_MAP_SZ);
                                     ^~~~~~~~~~~~~~~~
external/selinux/libsepol/include/sepol/policydb/hashtab.h:53:48: note: passing argument to parameter 'hash_value' here
extern hashtab_t hashtab_create(unsigned int (*hash_value) (hashtab_t h,
                                               ^
external/selinux/libsepol/cil/src/android.c:857:49: warning: incompatible pointer types passing 'int (hashtab_t, const hashtab_key_t, const hashtab_key_t)' (aka 'int (struct hashtab_val *, char *const, char *const)') to parameter of type 'int (*)(hashtab_t, const_hashtab_key_t, const_hashtab_key_t)' (aka 'int (*)(struct hashtab_val *, const char *, const char *)') [-Wincompatible-pointer-types]
        ver_map_tab = hashtab_create(ver_map_hash_val, ver_map_key_cmp, VER_MAP_SZ);
                                                       ^~~~~~~~~~~~~~~
external/selinux/libsepol/cil/src/android.c:887:31: warning: incompatible pointer types passing 'unsigned int (hashtab_t, const hashtab_key_t)' (aka 'unsigned int (struct hashtab_val *, char *const)') to parameter of type 'unsigned int (*)(hashtab_t, const_hashtab_key_t)' (aka 'unsigned int (*)(struct hashtab_val *, const char *)') [-Wincompatible-pointer-types]
        ver_map_tab = hashtab_create(ver_map_hash_val, ver_map_key_cmp, VER_MAP_SZ);
                                     ^~~~~~~~~~~~~~~~
external/selinux/libsepol/include/sepol/policydb/hashtab.h:53:48: note: passing argument to parameter 'hash_value' here
extern hashtab_t hashtab_create(unsigned int (*hash_value) (hashtab_t h,
                                               ^
external/selinux/libsepol/cil/src/android.c:887:49: warning: incompatible pointer types passing 'int (hashtab_t, const hashtab_key_t, const hashtab_key_t)' (aka 'int (struct hashtab_val *, char *const, char *const)') to parameter of type 'int (*)(hashtab_t, const_hashtab_key_t, const_hashtab_key_t)' (aka 'int (*)(struct hashtab_val *, const char *, const char *)') [-Wincompatible-pointer-types]
        ver_map_tab = hashtab_create(ver_map_hash_val, ver_map_key_cmp, VER_MAP_SZ);
                                                       ^~~~~~~~~~~~~~~

Test: no compiler warnings. Device boots.
Change-Id: Iea533833bdcfbd1ff2dc8301a5976a2d92aee2bf
1 file changed