From 6cf8a5137e9e0a8fcdf5287187935ffc505a2132 Mon Sep 17 00:00:00 2001
From: Dan McGee <dan@archlinux.org>
Date: Mon, 29 Oct 2007 01:28:13 -0500
Subject: libalpm/delta: add const to most methods

Signed-off-by: Dan McGee <dan@archlinux.org>
---
 lib/libalpm/alpm.h  | 8 ++++----
 lib/libalpm/delta.c | 8 ++++----
 lib/libalpm/sync.c  | 2 +-
 3 files changed, 9 insertions(+), 9 deletions(-)

diff --git a/lib/libalpm/alpm.h b/lib/libalpm/alpm.h
index 2000db4a..d1de5eda 100644
--- a/lib/libalpm/alpm.h
+++ b/lib/libalpm/alpm.h
@@ -221,11 +221,11 @@ unsigned long alpm_pkg_download_size(pmpkg_t *newpkg, pmdb_t *db_local);
  * Deltas
  */
 
-char *alpm_delta_get_from(pmdelta_t *delta);
-char *alpm_delta_get_to(pmdelta_t *delta);
+const char *alpm_delta_get_from(pmdelta_t *delta);
+const char *alpm_delta_get_to(pmdelta_t *delta);
 unsigned long alpm_delta_get_size(pmdelta_t *delta);
-char *alpm_delta_get_filename(pmdelta_t *delta);
-char *alpm_delta_get_md5sum(pmdelta_t *delta);
+const char *alpm_delta_get_filename(pmdelta_t *delta);
+const char *alpm_delta_get_md5sum(pmdelta_t *delta);
 
 /*
  * Groups
diff --git a/lib/libalpm/delta.c b/lib/libalpm/delta.c
index 626ffb31..0e9dcc39 100644
--- a/lib/libalpm/delta.c
+++ b/lib/libalpm/delta.c
@@ -37,7 +37,7 @@
  * @{
  */
 
-char SYMEXPORT *alpm_delta_get_from(pmdelta_t *delta)
+const char SYMEXPORT *alpm_delta_get_from(pmdelta_t *delta)
 {
 	ALPM_LOG_FUNC;
 
@@ -47,7 +47,7 @@ char SYMEXPORT *alpm_delta_get_from(pmdelta_t *delta)
 	return(delta->from);
 }
 
-char SYMEXPORT *alpm_delta_get_to(pmdelta_t *delta)
+const char SYMEXPORT *alpm_delta_get_to(pmdelta_t *delta)
 {
 	ALPM_LOG_FUNC;
 
@@ -67,7 +67,7 @@ unsigned long SYMEXPORT alpm_delta_get_size(pmdelta_t *delta)
 	return(delta->size);
 }
 
-char SYMEXPORT *alpm_delta_get_filename(pmdelta_t *delta)
+const char SYMEXPORT *alpm_delta_get_filename(pmdelta_t *delta)
 {
 	ALPM_LOG_FUNC;
 
@@ -77,7 +77,7 @@ char SYMEXPORT *alpm_delta_get_filename(pmdelta_t *delta)
 	return(delta->filename);
 }
 
-char SYMEXPORT *alpm_delta_get_md5sum(pmdelta_t *delta)
+const char SYMEXPORT *alpm_delta_get_md5sum(pmdelta_t *delta)
 {
 	ALPM_LOG_FUNC;
 
diff --git a/lib/libalpm/sync.c b/lib/libalpm/sync.c
index 4900bda4..3e61c517 100644
--- a/lib/libalpm/sync.c
+++ b/lib/libalpm/sync.c
@@ -951,7 +951,7 @@ static int test_delta_md5sum(pmtrans_t *trans, pmdelta_t *delta,
 		alpm_list_t **data)
 {
 	const char *filename;
-	char *md5sum;
+	const char *md5sum;
 	int ret = 0;
 
 	filename = alpm_delta_get_filename(delta);
-- 
cgit v1.2.3-70-g09d2