diff options
author | Emil Velikov <emil.l.velikov@gmail.com> | 2021-01-05 01:36:09 +0100 |
---|---|---|
committer | Allan McRae <allan@archlinux.org> | 2021-01-08 15:15:04 +0100 |
commit | 1d2dd9a128690cef754bc102605df4918a508848 (patch) | |
tree | 70c11423075035e0b7f62fdce9fcdf73e1ca8b4a /lib/libalpm/package.h | |
parent | f8614d8c5be0f58db8e14092a387ff6ffbf209d7 (diff) | |
download | pacman-1d2dd9a128690cef754bc102605df4918a508848.tar.gz pacman-1d2dd9a128690cef754bc102605df4918a508848.tar.xz |
libalpm: const annotate struct pkg_operations
Signed-off-by: Emil Velikov <emil.l.velikov@gmail.com>
Signed-off-by: Allan McRae <allan@archlinux.org>
Diffstat (limited to 'lib/libalpm/package.h')
-rw-r--r-- | lib/libalpm/package.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/libalpm/package.h b/lib/libalpm/package.h index c37bd11e..b134ad5a 100644 --- a/lib/libalpm/package.h +++ b/lib/libalpm/package.h @@ -83,7 +83,7 @@ struct pkg_operations { * The actual definition is in package.c so it can have access to the * default accessor functions which are defined there. */ -extern struct pkg_operations default_pkg_ops; +extern const struct pkg_operations default_pkg_ops; struct __alpm_pkg_t { unsigned long name_hash; @@ -121,7 +121,7 @@ struct __alpm_pkg_t { alpm_list_t *removes; /* in transaction targets only */ alpm_pkg_t *oldpkg; /* in transaction targets only */ - struct pkg_operations *ops; + const struct pkg_operations *ops; alpm_filelist_t files; |