瀏覽代碼

dpkg-deb: Rename getfi() into file_info_get()

Guillem Jover 15 年之前
父節點
當前提交
167fc193f4
共有 1 個文件被更改,包括 2 次插入2 次删除
  1. 2 2
      dpkg-deb/build.c

+ 2 - 2
dpkg-deb/build.c

@@ -122,7 +122,7 @@ file_info_find_name(struct file_info *list, const char *filename)
  * @return A file_info struct or NULL if there is nothing to read.
  */
 static struct file_info *
-getfi(const char *root, int fd)
+file_info_get(const char *root, int fd)
 {
   static char* fn = NULL;
   static size_t fnlen = 0;
@@ -549,7 +549,7 @@ void do_build(const char *const *argv) {
   close(p3[1]);
   /* We need to reorder the files so we can make sure that symlinks
    * will not appear before their target. */
-  while ((fi = getfi(dir, p3[0])) != NULL)
+  while ((fi = file_info_get(dir, p3[0])) != NULL)
     if (S_ISLNK(fi->st.st_mode))
       file_info_list_append(&symlist, &symlist_end, fi);
     else {