Author: mis Date: Sun Jul 8 16:59:20 2007 GMT Module: poldek Tag: HEAD ---- Log message: - use const
---- Files affected: poldek/poldek: pkgmisc.h (1.16 -> 1.17) , pkgfetch.c (1.28 -> 1.29) , pkgmark.c (1.8 -> 1.9) , poldek_intern.h (1.11 -> 1.12) ---- Diffs: ================================================================ Index: poldek/poldek/pkgmisc.h diff -u poldek/poldek/pkgmisc.h:1.16 poldek/poldek/pkgmisc.h:1.17 --- poldek/poldek/pkgmisc.h:1.16 Sun Jul 1 23:04:26 2007 +++ poldek/poldek/pkgmisc.h Sun Jul 8 18:59:15 2007 @@ -23,8 +23,8 @@ struct pm_ctx; /* pmctx is needed to call pm_verify_signature() */ -void packages_fetch_summary(struct pm_ctx *pmctx, - tn_array *pkgs, const char *destdir, int nosubdirs); +void packages_fetch_summary(struct pm_ctx *pmctx, const tn_array *pkgs, + const char *destdir, int nosubdirs); int packages_fetch(struct pm_ctx *pmctx, tn_array *pkgs, const char *destdir, int nosubdirs); @@ -56,7 +56,8 @@ int pkgmark_set(struct pkgmark_set *pms, struct pkg *pkg, int set, uint32_t flag); -int pkgmark_isset(struct pkgmark_set *pms, struct pkg *pkg, uint32_t flag); +int pkgmark_isset(const struct pkgmark_set *pms, const struct pkg *pkg, + uint32_t flag); tn_array *pkgmark_get_packages(struct pkgmark_set *pmark, uint32_t flag); ================================================================ Index: poldek/poldek/pkgfetch.c diff -u poldek/poldek/pkgfetch.c:1.28 poldek/poldek/pkgfetch.c:1.29 --- poldek/poldek/pkgfetch.c:1.28 Sun May 15 17:56:03 2005 +++ poldek/poldek/pkgfetch.c Sun Jul 8 18:59:15 2007 @@ -60,8 +60,8 @@ return verify_flags; } -void packages_fetch_summary(struct pm_ctx *pmctx, - tn_array *pkgs, const char *destdir, int nosubdirs) +void packages_fetch_summary(struct pm_ctx *pmctx, const tn_array *pkgs, + const char *destdir, int nosubdirs) { long bytesget = 0, bytesdownload = 0, bytesused = 0; int i; ================================================================ Index: poldek/poldek/pkgmark.c diff -u poldek/poldek/pkgmark.c:1.8 poldek/poldek/pkgmark.c:1.9 --- poldek/poldek/pkgmark.c:1.8 Mon Sep 11 23:47:45 2006 +++ poldek/poldek/pkgmark.c Sun Jul 8 18:59:15 2007 @@ -44,8 +44,8 @@ }; static inline -const char *package_id(char *buf, int size, struct pkgmark_set *pmark, - struct pkg *pkg) +const char *package_id(char *buf, int size, const struct pkgmark_set *pmark, + const struct pkg *pkg) { if (pmark->flags & PKGMARK_SET_IDNEVR) return pkg_id(pkg); @@ -138,7 +138,8 @@ return 1; } -int pkgmark_isset(struct pkgmark_set *pmark, struct pkg *pkg, uint32_t flag) +int pkgmark_isset(const struct pkgmark_set *pmark, const struct pkg *pkg, + uint32_t flag) { struct pkg_mark *pkg_mark; char idbuf[512]; ================================================================ Index: poldek/poldek/poldek_intern.h diff -u poldek/poldek/poldek_intern.h:1.11 poldek/poldek/poldek_intern.h:1.12 --- poldek/poldek/poldek_intern.h:1.11 Sun Jul 1 23:04:26 2007 +++ poldek/poldek/poldek_intern.h Sun Jul 8 18:59:15 2007 @@ -61,8 +61,8 @@ tn_array *poldek__ts_install_ordered_packages(const struct poldek_ts *ts); void poldek__ts_update_summary(struct poldek_ts *ts, - const char *prefix, tn_array *pkgs, - unsigned pmsflags, struct pkgmark_set *pms); + const char *prefix, const tn_array *pkgs, + unsigned pmsflags, const struct pkgmark_set *pms); void poldek__ts_display_summary(struct poldek_ts *ts); ================================================================ ---- CVS-web: http://cvs.pld-linux.org/poldek/poldek/pkgmisc.h?r1=1.16&r2=1.17&f=u http://cvs.pld-linux.org/poldek/poldek/pkgfetch.c?r1=1.28&r2=1.29&f=u http://cvs.pld-linux.org/poldek/poldek/pkgmark.c?r1=1.8&r2=1.9&f=u http://cvs.pld-linux.org/poldek/poldek/poldek_intern.h?r1=1.11&r2=1.12&f=u _______________________________________________ pld-cvs-commit mailing list pld-cvs-commit@lists.pld-linux.org http://lists.pld-linux.org/mailman/listinfo/pld-cvs-commit