diff options
author | Patrick McDermott <patrick.mcdermott@libiquity.com> | 2023-04-18 19:49:57 (EDT) |
---|---|---|
committer | Patrick McDermott <patrick.mcdermott@libiquity.com> | 2023-04-18 19:49:57 (EDT) |
commit | 532ad63744cd9c5e657599be0b16652bcc15fe5c (patch) | |
tree | 04e6468eef808880d3d52bce6d8b63d20226c1fd | |
parent | 7c7ea6515ac40f2f41fecc295998bd9ef0cffa78 (diff) |
ustar: Shorten macro name
-rw-r--r-- | src/ustar.c | 2 | ||||
-rw-r--r-- | src/ustar.h | 8 |
2 files changed, 5 insertions, 5 deletions
diff --git a/src/ustar.c b/src/ustar.c index 2a386f0..9d95052 100644 --- a/src/ustar.c +++ b/src/ustar.c @@ -254,7 +254,7 @@ opkg_opk_ustar_seek(struct opkg_opk_ustar *ustar, struct opkg_opk_ustar_seek_name *names) { static struct _opkg_opk_ustar_header header; - static char name[OPKG_OPK_USTAR_NAME_MAX_LEN]; + static char name[OPKG_OPK_USTAR_NAME_SIZE]; int found; int found_all; struct opkg_opk_ustar_seek_name *seek_name; diff --git a/src/ustar.h b/src/ustar.h index d2317b6..a5bb461 100644 --- a/src/ustar.h +++ b/src/ustar.h @@ -23,14 +23,14 @@ #include <stdint.h> #include "gzip.h" -#define OPKG_OPK_USTAR_RECORD_SIZE 512 -#define OPKG_OPK_USTAR_NAME_MAX_LEN 257 /* prefix[155] + '/' + name[100] + '\0' - */ +#define OPKG_OPK_USTAR_RECORD_SIZE 512 +#define OPKG_OPK_USTAR_NAME_SIZE 257 /* prefix[155] + '/' + name[100] + '\0' + */ struct opkg_opk_ustar; struct opkg_opk_ustar_member { - char name[OPKG_OPK_USTAR_NAME_MAX_LEN]; + char name[OPKG_OPK_USTAR_NAME_SIZE]; uint16_t mode; uint64_t size; int64_t mtime; |