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/lib Constify.



details:   https://anonhg.NetBSD.org/pkgsrc/rev/a46b55de9c75
branches:  trunk
changeset: 392005:a46b55de9c75
user:      joerg <joerg%pkgsrc.org@localhost>
date:      Fri Apr 24 01:03:41 2009 +0000

description:
Constify.

diffstat:

 pkgtools/pkg_install/files/lib/file.c |  6 +++---
 pkgtools/pkg_install/files/lib/lib.h  |  4 ++--
 2 files changed, 5 insertions(+), 5 deletions(-)

diffs (45 lines):

diff -r 94f04eaf51d1 -r a46b55de9c75 pkgtools/pkg_install/files/lib/file.c
--- a/pkgtools/pkg_install/files/lib/file.c     Fri Apr 24 01:03:12 2009 +0000
+++ b/pkgtools/pkg_install/files/lib/file.c     Fri Apr 24 01:03:41 2009 +0000
@@ -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 @@
  * "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 -r 94f04eaf51d1 -r a46b55de9c75 pkgtools/pkg_install/files/lib/lib.h
--- a/pkgtools/pkg_install/files/lib/lib.h      Fri Apr 24 01:03:12 2009 +0000
+++ b/pkgtools/pkg_install/files/lib/lib.h      Fri Apr 24 01:03:41 2009 +0000
@@ -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 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 *);



Home | Main Index | Thread Index | Old Index