summaryrefslogtreecommitdiff
path: root/pkgtools/pkg_install/files/info
diff options
context:
space:
mode:
authorjoerg <joerg@pkgsrc.org>2007-08-09 23:06:42 +0000
committerjoerg <joerg@pkgsrc.org>2007-08-09 23:06:42 +0000
commit710504e20a8c6719fb57732597870bc7b4512f19 (patch)
tree44bff2a6f9665e8d9cb480dcd9ac9b07611e01b8 /pkgtools/pkg_install/files/info
parentb2771720cd1928e982c3fe11b60b6b6e1ac1a20a (diff)
downloadpkgsrc-710504e20a8c6719fb57732597870bc7b4512f19.tar.gz
Pass a number of strings around as const char *.
Diffstat (limited to 'pkgtools/pkg_install/files/info')
-rw-r--r--pkgtools/pkg_install/files/info/info.h14
-rw-r--r--pkgtools/pkg_install/files/info/perform.c6
-rw-r--r--pkgtools/pkg_install/files/info/show.c16
3 files changed, 18 insertions, 18 deletions
diff --git a/pkgtools/pkg_install/files/info/info.h b/pkgtools/pkg_install/files/info/info.h
index 46f87f1e43c..95e95e40225 100644
--- a/pkgtools/pkg_install/files/info/info.h
+++ b/pkgtools/pkg_install/files/info/info.h
@@ -1,4 +1,4 @@
-/* $NetBSD: info.h,v 1.13 2007/07/30 07:16:21 joerg Exp $ */
+/* $NetBSD: info.h,v 1.14 2007/08/09 23:06:42 joerg Exp $ */
/* from FreeBSD Id: info.h,v 1.10 1997/02/22 16:09:40 peter Exp */
@@ -71,13 +71,13 @@ extern char *CheckPkg;
extern size_t termwidth;
extern lpkg_head_t pkgs;
-extern void show_file(char *, char *, char *, Boolean);
+extern void show_file(const char *, const char *, const char *, Boolean);
extern void show_var(const char *, const char *);
-extern void show_plist(char *, package_t *, pl_ent_t);
-extern void show_files(char *, package_t *);
-extern void show_depends(char *, package_t *);
-extern void show_bld_depends(char *, package_t *);
-extern void show_index(char *, char *, char *);
+extern void show_plist(const char *, package_t *, pl_ent_t);
+extern void show_files(const char *, package_t *);
+extern void show_depends(const char *, package_t *);
+extern void show_bld_depends(const char *, package_t *);
+extern void show_index(const char *, const char *, const char *);
extern void show_summary(package_t *, const char *);
int pkg_perform(lpkg_head_t *);
diff --git a/pkgtools/pkg_install/files/info/perform.c b/pkgtools/pkg_install/files/info/perform.c
index c4ff9306214..6fd7564fade 100644
--- a/pkgtools/pkg_install/files/info/perform.c
+++ b/pkgtools/pkg_install/files/info/perform.c
@@ -1,4 +1,4 @@
-/* $NetBSD: perform.c,v 1.34 2007/08/09 12:53:35 joerg Exp $ */
+/* $NetBSD: perform.c,v 1.35 2007/08/09 23:06:42 joerg Exp $ */
#if HAVE_CONFIG_H
#include "config.h"
@@ -14,7 +14,7 @@
#if 0
static const char *rcsid = "from FreeBSD Id: perform.c,v 1.23 1997/10/13 15:03:53 jkh Exp";
#else
-__RCSID("$NetBSD: perform.c,v 1.34 2007/08/09 12:53:35 joerg Exp $");
+__RCSID("$NetBSD: perform.c,v 1.35 2007/08/09 23:06:42 joerg Exp $");
#endif
#endif
@@ -66,7 +66,7 @@ static char *Home;
static lfile_head_t files;
static int
-pkg_do(char *pkg)
+pkg_do(const char *pkg)
{
Boolean installed = FALSE, isTMP = FALSE;
char log_dir[MaxPathSize];
diff --git a/pkgtools/pkg_install/files/info/show.c b/pkgtools/pkg_install/files/info/show.c
index 9c84a0db0f5..11dbc4e87f0 100644
--- a/pkgtools/pkg_install/files/info/show.c
+++ b/pkgtools/pkg_install/files/info/show.c
@@ -1,4 +1,4 @@
-/* $NetBSD: show.c,v 1.14 2007/04/20 14:25:13 joerg Exp $ */
+/* $NetBSD: show.c,v 1.15 2007/08/09 23:06:42 joerg Exp $ */
#if HAVE_CONFIG_H
#include "config.h"
@@ -11,7 +11,7 @@
#if 0
static const char *rcsid = "from FreeBSD Id: show.c,v 1.11 1997/10/08 07:47:38 charnier Exp";
#else
-__RCSID("$NetBSD: show.c,v 1.14 2007/04/20 14:25:13 joerg Exp $");
+__RCSID("$NetBSD: show.c,v 1.15 2007/08/09 23:06:42 joerg Exp $");
#endif
#endif
@@ -110,7 +110,7 @@ static const show_t showv[] = {
static int print_file_as_var(const char *, const char *);
void
-show_file(char *pkg, char *title, char *fname, Boolean separator)
+show_file(const char *pkg, const char *title, const char *fname, Boolean separator)
{
FILE *fp;
char line[1024];
@@ -148,7 +148,7 @@ show_var(const char *fname, const char *variable)
}
void
-show_index(char *pkg, char *title, char *fname)
+show_index(const char *pkg, const char *title, const char *fname)
{
FILE *fp;
char *line;
@@ -178,7 +178,7 @@ show_index(char *pkg, char *title, char *fname)
* Show a packing list item type. If type is PLIST_SHOW_ALL, show all
*/
void
-show_plist(char *title, package_t *plist, pl_ent_t type)
+show_plist(const char *title, package_t *plist, pl_ent_t type)
{
plist_t *p;
Boolean ign;
@@ -239,7 +239,7 @@ show_plist(char *title, package_t *plist, pl_ent_t type)
* Show all files in the packing list (except ignored ones)
*/
void
-show_files(char *title, package_t *plist)
+show_files(const char *title, package_t *plist)
{
plist_t *p;
Boolean ign;
@@ -273,7 +273,7 @@ show_files(char *title, package_t *plist)
* Show dependencies (packages this pkg requires)
*/
void
-show_depends(char *title, package_t *plist)
+show_depends(const char *title, package_t *plist)
{
plist_t *p;
int nodepends;
@@ -311,7 +311,7 @@ show_depends(char *title, package_t *plist)
* Show exact dependencies (packages this pkg was built with)
*/
void
-show_bld_depends(char *title, package_t *plist)
+show_bld_depends(const char *title, package_t *plist)
{
plist_t *p;
int nodepends;