Просмотр исходного кода

libdpkg: Make path_quote_filename s argument const

Guillem Jover лет назад: 17
Родитель
Сommit
44fed3cce6
2 измененных файлов с 2 добавлено и 2 удалено
  1. 1 1
      lib/dpkg/path.c
  2. 1 1
      lib/dpkg/path.h

+ 1 - 1
lib/dpkg/path.c

@@ -77,7 +77,7 @@ path_skip_slash_dotslash(const char *path)
  * - ukai@debian.or.jp
  */
 char *
-path_quote_filename(char *buf, int size, char *s)
+path_quote_filename(char *buf, int size, const char *s)
 {
 	char *r = buf;
 

+ 1 - 1
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