diff options
author | joerg <joerg> | 2009-04-24 01:03:41 +0000 |
---|---|---|
committer | joerg <joerg> | 2009-04-24 01:03:41 +0000 |
commit | c4ddb4cd570b778833e024dccff9195fea8bb0ad (patch) | |
tree | a36c2b37d4c6f464bd06f5bb18a3f82ec4bd0fed /pkgtools/pkg_install | |
parent | 23d10e6130459651c3086c81268799ce3ab0184d (diff) | |
download | pkgsrc-c4ddb4cd570b778833e024dccff9195fea8bb0ad.tar.gz |
Constify.
Diffstat (limited to 'pkgtools/pkg_install')
-rw-r--r-- | pkgtools/pkg_install/files/lib/file.c | 6 | ||||
-rw-r--r-- | pkgtools/pkg_install/files/lib/lib.h | 4 |
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 *); |