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;
|
||||
}
|
||||
|
||||
struct db_operations local_db_ops = {
|
||||
static const struct db_operations local_db_ops = {
|
||||
.validate = local_db_validate,
|
||||
.populate = local_db_populate,
|
||||
.unregister = _alpm_db_unregister,
|
||||
|
|
|
@ -70,7 +70,7 @@ struct __alpm_db_t {
|
|||
alpm_pkghash_t *pkgcache;
|
||||
alpm_list_t *grpcache;
|
||||
alpm_list_t *servers;
|
||||
struct db_operations *ops;
|
||||
const struct db_operations *ops;
|
||||
|
||||
/* bitfields for validity, local, loaded caches, etc. */
|
||||
/* From _alpm_dbstatus_t */
|
||||
|
|
Loading…
Add table
Reference in a new issue