pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/pkgtools/pkg_install/files/info Pass a number of strin...
details: https://anonhg.NetBSD.org/pkgsrc/rev/c8c455413868
branches: trunk
changeset: 532010:c8c455413868
user: joerg <joerg%pkgsrc.org@localhost>
date: Thu Aug 09 23:06:42 2007 +0000
description:
Pass a number of strings around as const char *.
diffstat:
pkgtools/pkg_install/files/info/info.h | 14 +++++++-------
pkgtools/pkg_install/files/info/perform.c | 6 +++---
pkgtools/pkg_install/files/info/show.c | 16 ++++++++--------
3 files changed, 18 insertions(+), 18 deletions(-)
diffs (128 lines):
diff -r ecaf34fce625 -r c8c455413868 pkgtools/pkg_install/files/info/info.h
--- a/pkgtools/pkg_install/files/info/info.h Thu Aug 09 22:56:53 2007 +0000
+++ b/pkgtools/pkg_install/files/info/info.h Thu Aug 09 23:06:42 2007 +0000
@@ -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 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 -r ecaf34fce625 -r c8c455413868 pkgtools/pkg_install/files/info/perform.c
--- a/pkgtools/pkg_install/files/info/perform.c Thu Aug 09 22:56:53 2007 +0000
+++ b/pkgtools/pkg_install/files/info/perform.c Thu Aug 09 23:06:42 2007 +0000
@@ -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 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 -r ecaf34fce625 -r c8c455413868 pkgtools/pkg_install/files/info/show.c
--- a/pkgtools/pkg_install/files/info/show.c Thu Aug 09 22:56:53 2007 +0000
+++ b/pkgtools/pkg_install/files/info/show.c Thu Aug 09 23:06:42 2007 +0000
@@ -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 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 @@
}
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 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 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 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 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;
Home |
Main Index |
Thread Index |
Old Index