summaryrefslogtreecommitdiffstats
path: root/src/util/cleanupdelta.c
diff options
context:
space:
mode:
authorDan McGee <dan@archlinux.org>2011-05-04 22:48:47 +0200
committerDan McGee <dan@archlinux.org>2011-05-04 22:48:47 +0200
commite8a40526cb3be82c5019f0ee3f592a08b3387fa9 (patch)
treedf47b16beb2dfcfd42d2bc94379725082b653f7c /src/util/cleanupdelta.c
parentc03faa32f335f3fb7bc1bc8718dd1781781ef3dd (diff)
downloadpacman-e8a40526cb3be82c5019f0ee3f592a08b3387fa9.tar.gz
pacman-e8a40526cb3be82c5019f0ee3f592a08b3387fa9.tar.xz
Fix warnings reported by -Wwrite-strings
These are places where we stuck a string constant in a variable not marked as const. Signed-off-by: Dan McGee <dan@archlinux.org>
Diffstat (limited to 'src/util/cleanupdelta.c')
-rw-r--r--src/util/cleanupdelta.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/util/cleanupdelta.c b/src/util/cleanupdelta.c
index 6388e840..ae36d2a2 100644
--- a/src/util/cleanupdelta.c
+++ b/src/util/cleanupdelta.c
@@ -65,7 +65,7 @@ static void checkpkgs(alpm_list_t *pkglist)
}
}
-static void checkdbs(char *dbpath, alpm_list_t *dbnames) {
+static void checkdbs(const char *dbpath, alpm_list_t *dbnames) {
char syncdbpath[PATH_MAX];
pmdb_t *db = NULL;
alpm_list_t *i;
@@ -93,7 +93,7 @@ static void usage(void) {
int main(int argc, char *argv[])
{
- char *dbpath = DBPATH;
+ const char *dbpath = DBPATH;
int a = 1;
alpm_list_t *dbnames = NULL;