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

libdpkg: Change path_quote_filename size argument type to size_t

Guillem Jover лет назад: 17
Родитель
Сommit
f35d66dbc2
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
  * - ukai@debian.or.jp
  */
  */
 char *
 char *
-path_quote_filename(char *buf, int size, const char *s)
+path_quote_filename(char *buf, size_t size, const char *s)
 {
 {
 	char *r = buf;
 	char *r = buf;
 
 

+ 1 - 1
lib/dpkg/path.h

@@ -32,7 +32,7 @@ DPKG_BEGIN_DECLS
 
 
 size_t path_rtrim_slash_slashdot(char *path);
 size_t path_rtrim_slash_slashdot(char *path);
 const char *path_skip_slash_dotslash(const char *path);
 const char *path_skip_slash_dotslash(const char *path);
-char *path_quote_filename(char *buf, int size, const char *s);
+char *path_quote_filename(char *buf, size_t size, const char *s);
 
 
 DPKG_END_DECLS
 DPKG_END_DECLS