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

libdpkg: Rename DecodeTarHeader to tar_header_decode

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

+ 2 - 2
lib/dpkg/tarfn.c

@@ -159,7 +159,7 @@ get_unix_mode(struct tar_header *h)
 }
 
 static int
-DecodeTarHeader(char *block, struct tar_entry *d)
+tar_header_decode(char *block, struct tar_entry *d)
 {
 	struct tar_header *h = (struct tar_header *)block;
 	unsigned char *s = (unsigned char *)block;
@@ -248,7 +248,7 @@ tar_extractor(void *ctx, const struct tar_operations *ops)
 	while ((status = ops->read(ctx, buffer, TARBLKSZ)) == TARBLKSZ) {
 		int name_len;
 
-		if (!DecodeTarHeader(buffer, &h)) {
+		if (!tar_header_decode(buffer, &h)) {
 			if (h.name[0] == '\0') {
 				/* End of tape. */
 				status = 0;