Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/lib/libalpm/alpm.h
diff options
context:
space:
mode:
authorDan McGee <dan@archlinux.org>2007-11-12 22:48:15 -0600
committerDan McGee <dan@archlinux.org>2007-11-13 00:13:05 -0600
commit1b2817f539eb3cd94b48b49736016e0bfedf3e49 (patch)
tree995a1e89a6b807dc6c55f43970d504d6d34ab183 /lib/libalpm/alpm.h
parentec6a7d689b727d384115fcc6e48b38612c91317b (diff)
Enforce const correctness on dep functions and rewrite alpm_dep_get_string
Add some const specifiers to the dep functions that can have them. In addition, rewrite alpm_dep_get_string to use snprintf and cover all of the bases (operators). Signed-off-by: Dan McGee <dan@archlinux.org>
Diffstat (limited to 'lib/libalpm/alpm.h')
-rw-r--r--lib/libalpm/alpm.h12
1 files changed, 6 insertions, 6 deletions
diff --git a/lib/libalpm/alpm.h b/lib/libalpm/alpm.h
index cdece2d3..a279629f 100644
--- a/lib/libalpm/alpm.h
+++ b/lib/libalpm/alpm.h
@@ -378,14 +378,14 @@ int alpm_depcmp(pmpkg_t *pkg, pmdepend_t *dep);
alpm_list_t *alpm_checkdeps(pmdb_t *db, pmtranstype_t op,
alpm_list_t *packages);
-const char *alpm_miss_get_target(pmdepmissing_t *miss);
-pmdeptype_t alpm_miss_get_type(pmdepmissing_t *miss);
+const char *alpm_miss_get_target(const pmdepmissing_t *miss);
+pmdeptype_t alpm_miss_get_type(const pmdepmissing_t *miss);
pmdepend_t *alpm_miss_get_dep(pmdepmissing_t *miss);
-pmdepmod_t alpm_dep_get_mod(pmdepend_t *dep);
-const char *alpm_dep_get_name(pmdepend_t *dep);
-const char *alpm_dep_get_version(pmdepend_t *dep);
-char *alpm_dep_get_string(pmdepend_t *dep);
+pmdepmod_t alpm_dep_get_mod(const pmdepend_t *dep);
+const char *alpm_dep_get_name(const pmdepend_t *dep);
+const char *alpm_dep_get_version(const pmdepend_t *dep);
+char *alpm_dep_get_string(const pmdepend_t *dep);
/*
* File conflicts