summaryrefslogtreecommitdiffstats
path: root/lib/libalpm/db.h
diff options
context:
space:
mode:
authorAurelien Foret <aurelien@archlinux.org>2005-03-16 21:23:50 +0100
committerAurelien Foret <aurelien@archlinux.org>2005-03-16 21:23:50 +0100
commit22c0037a082dc2ca31b64e41a65fd5ef939ea541 (patch)
tree20744b6272fe9ee5740a016309be4bfce76e79d9 /lib/libalpm/db.h
parent57df73517fcaf13f3e576dcb6631d676a04764f5 (diff)
downloadpacman-22c0037a082dc2ca31b64e41a65fd5ef939ea541.tar.gz
pacman-22c0037a082dc2ca31b64e41a65fd5ef939ea541.tar.xz
Added DB_TREENAME_LEN define to avoid hardcoded length for database string
Diffstat (limited to 'lib/libalpm/db.h')
-rw-r--r--lib/libalpm/db.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/libalpm/db.h b/lib/libalpm/db.h
index de8dfe2b..07fa1ef2 100644
--- a/lib/libalpm/db.h
+++ b/lib/libalpm/db.h
@@ -34,10 +34,12 @@
#define INFRQ_SCRIPLET 0x08
#define INFRQ_ALL 0xFF
+#define DB_TREENAME_LEN 128
+
/* Database */
typedef struct __pmdb_t {
char *path;
- char treename[128];
+ char treename[DB_TREENAME_LEN];
DIR *dir;
PMList *pkgcache;
PMList *grpcache;