The following commit has been merged in the master branch:
commit 44fed3cce6ca6d410d48dce55176c73c1cbbc960
Author: Guillem Jover <[email protected]>
Date:   Mon Oct 5 04:04:35 2009 +0200

    libdpkg: Make path_quote_filename s argument const

diff --git a/lib/dpkg/path.c b/lib/dpkg/path.c
index 240bdce..cb8df08 100644
--- a/lib/dpkg/path.c
+++ b/lib/dpkg/path.c
@@ -77,7 +77,7 @@ path_skip_slash_dotslash(const char *path)
  * - [email protected]
  */
 char *
-path_quote_filename(char *buf, int size, char *s)
+path_quote_filename(char *buf, int size, const char *s)
 {
        char *r = buf;
 
diff --git a/lib/dpkg/path.h b/lib/dpkg/path.h
index ae65f06..2e40f5a 100644
--- a/lib/dpkg/path.h
+++ b/lib/dpkg/path.h
@@ -32,7 +32,7 @@ DPKG_BEGIN_DECLS
 
 size_t path_rtrim_slash_slashdot(char *path);
 const char *path_skip_slash_dotslash(const char *path);
-char *path_quote_filename(char *buf, int size, char *s);
+char *path_quote_filename(char *buf, int size, const char *s);
 
 DPKG_END_DECLS
 

-- 
dpkg's main repository


-- 
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]

Reply via email to