libalpm: const annotate struct db_operations
Signed-off-by: Emil Velikov <emil.l.velikov@gmail.com> Signed-off-by: Allan McRae <allan@archlinux.org>
This commit is contained in:
parent
1d2dd9a128
commit
45a648961b
2 changed files with 2 additions and 2 deletions
|
@ -1158,7 +1158,7 @@ int SYMEXPORT alpm_pkg_set_reason(alpm_pkg_t *pkg, alpm_pkgreason_t reason)
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
struct db_operations local_db_ops = {
|
static const struct db_operations local_db_ops = {
|
||||||
.validate = local_db_validate,
|
.validate = local_db_validate,
|
||||||
.populate = local_db_populate,
|
.populate = local_db_populate,
|
||||||
.unregister = _alpm_db_unregister,
|
.unregister = _alpm_db_unregister,
|
||||||
|
|
|
@ -70,7 +70,7 @@ struct __alpm_db_t {
|
||||||
alpm_pkghash_t *pkgcache;
|
alpm_pkghash_t *pkgcache;
|
||||||
alpm_list_t *grpcache;
|
alpm_list_t *grpcache;
|
||||||
alpm_list_t *servers;
|
alpm_list_t *servers;
|
||||||
struct db_operations *ops;
|
const struct db_operations *ops;
|
||||||
|
|
||||||
/* bitfields for validity, local, loaded caches, etc. */
|
/* bitfields for validity, local, loaded caches, etc. */
|
||||||
/* From _alpm_dbstatus_t */
|
/* From _alpm_dbstatus_t */
|
||||||
|
|
Loading…
Add table
Reference in a new issue