summaryrefslogtreecommitdiff
path: root/pkgtools
diff options
context:
space:
mode:
authorjoerg <joerg@pkgsrc.org>2009-04-24 01:03:41 +0000
committerjoerg <joerg@pkgsrc.org>2009-04-24 01:03:41 +0000
commitd7225531eda834104c233b56abb37dafd01bd346 (patch)
treea36c2b37d4c6f464bd06f5bb18a3f82ec4bd0fed /pkgtools
parent087dd67aab07bd386d1d7198d14aab3d16ef4a6c (diff)
downloadpkgsrc-d7225531eda834104c233b56abb37dafd01bd346.tar.gz
Constify.
Diffstat (limited to 'pkgtools')
-rw-r--r--pkgtools/pkg_install/files/lib/file.c6
-rw-r--r--pkgtools/pkg_install/files/lib/lib.h4
2 files changed, 5 insertions, 5 deletions
diff --git a/pkgtools/pkg_install/files/lib/file.c b/pkgtools/pkg_install/files/lib/file.c
index 5ee81b935a4..721ebeda302 100644
--- a/pkgtools/pkg_install/files/lib/file.c
+++ b/pkgtools/pkg_install/files/lib/file.c
@@ -1,4 +1,4 @@
-/* $NetBSD: file.c,v 1.26 2009/02/02 12:35:01 joerg Exp $ */
+/* $NetBSD: file.c,v 1.27 2009/04/24 01:03:41 joerg Exp $ */
#if HAVE_CONFIG_H
#include "config.h"
@@ -13,7 +13,7 @@
#if HAVE_SYS_QUEUE_H
#include <sys/queue.h>
#endif
-__RCSID("$NetBSD: file.c,v 1.26 2009/02/02 12:35:01 joerg Exp $");
+__RCSID("$NetBSD: file.c,v 1.27 2009/04/24 01:03:41 joerg Exp $");
/*
* FreeBSD install - a package for the installation and maintainance
@@ -217,7 +217,7 @@ URLlength(const char *fname)
* "preserve" name for it.
*/
Boolean
-make_preserve_name(char *try, size_t max, char *name, char *file)
+make_preserve_name(char *try, size_t max, const char *name, const char *file)
{
int len, i;
diff --git a/pkgtools/pkg_install/files/lib/lib.h b/pkgtools/pkg_install/files/lib/lib.h
index d41f8887aa3..a8edac7acb8 100644
--- a/pkgtools/pkg_install/files/lib/lib.h
+++ b/pkgtools/pkg_install/files/lib/lib.h
@@ -1,4 +1,4 @@
-/* $NetBSD: lib.h,v 1.52 2009/04/23 19:35:52 joerg Exp $ */
+/* $NetBSD: lib.h,v 1.53 2009/04/24 01:03:41 joerg Exp $ */
/* from FreeBSD Id: lib.h,v 1.25 1997/10/08 07:48:03 charnier Exp */
@@ -302,7 +302,7 @@ Boolean isfile(const char *);
Boolean isbrokenlink(const char *);
Boolean isempty(const char *);
int URLlength(const char *);
-Boolean make_preserve_name(char *, size_t, char *, char *);
+Boolean make_preserve_name(char *, size_t, const char *, const char *);
void remove_files(const char *, const char *);
int delete_hierarchy(const char *, Boolean, Boolean);
int format_cmd(char *, size_t, const char *, const char *, const char *);