Replace an if block with a case statement and add an enum
modified libpkg/metalog.c
@@ -53,24 +53,25 @@ metalog_add(int type, const char *path, const char *uname, const char *gname,
|
|
|
|
|
|
| - | |
| + | |
| + | |
|
|
|
|
|
|
| - | |
| - | |
| - | |
| + | |
| + | |
|
|
|
|
|
|
| - | |
| - | |
| - | |
| + | |
| + | |
|
|
|
|
|
|
| + | |
|
|
|
|
| + | |
|
|
|
|
|
modified libpkg/pkg_add.c
@@ -352,8 +352,9 @@ do_extract_dir(struct pkg* pkg, struct archive *a __unused, struct archive_entry
|
|
|
|
|
|
| - | |
| - | |
| + | |
| + | |
| + | |
|
|
|
|
|
@@ -401,9 +402,9 @@ retry:
|
|
|
|
|
|
| - | |
| - | |
| - | |
| + | |
| + | |
| + | |
|
|
|
|
|
@@ -438,8 +439,9 @@ do_extract_hardlink(struct pkg *pkg, struct archive *a __unused, struct archive_
|
|
|
|
|
|
| - | |
| - | |
| + | |
| + | |
| + | |
|
|
|
|
|
@@ -531,8 +533,9 @@ retry:
|
|
|
|
|
|
| - | |
| - | |
| + | |
| + | |
| + | |
|
|
|
|
|
modified libpkg/private/pkg.h
@@ -798,5 +798,10 @@ int metalog_open(const char *metalog);
|
|
|
|
|
|
| + | |
| + | |
| + | |
| + | |
| + | |
|
|
|