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

dpkg-deb: Rename add_to_filist() arguments to head/tail

This normalized them with the rest of the codebase.
Guillem Jover лет назад: 15
Родитель
Сommit
2998b32eaf
1 измененных файлов с 4 добавлено и 4 удалено
  1. 4 4
      dpkg-deb/build.c

+ 4 - 4
dpkg-deb/build.c

@@ -178,13 +178,13 @@ getfi(const char *root, int fd)
  * assume full responsibility for its memory.
  * assume full responsibility for its memory.
  */
  */
 static void
 static void
-add_to_filist(struct file_info **start, struct file_info **end,
+add_to_filist(struct file_info **head, struct file_info **tail,
               struct file_info *fi)
               struct file_info *fi)
 {
 {
-  if (*start==NULL)
-    *start=*end=fi;
+  if (*head == NULL)
+    *head = *tail = fi;
   else
   else
-    *end=(*end)->next=fi;
+    *tail = (*tail)->next =fi;
 }
 }
 
 
 /**
 /**