diff options
author | Patrick McDermott <patrick.mcdermott@libiquity.com> | 2023-04-14 15:00:58 (EDT) |
---|---|---|
committer | Patrick McDermott <patrick.mcdermott@libiquity.com> | 2023-04-14 15:00:58 (EDT) |
commit | 20cb252b483c6797a77219be3faa6513e35adf51 (patch) | |
tree | 76660bef707148694ae1018a2c9c751e92393305 /src/ustar.h | |
parent | f9dafad4a195adec937c72f825aaecdcabfec8d7 (diff) |
Eliminate magic numbers
Diffstat (limited to 'src/ustar.h')
-rw-r--r-- | src/ustar.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/ustar.h b/src/ustar.h index ccb10a2..596f598 100644 --- a/src/ustar.h +++ b/src/ustar.h @@ -20,10 +20,14 @@ #ifndef OPKG_OPK_USTAR_H_ #define OPKG_OPK_USTAR_H_ +#define OPKG_OPK_USTAR_RECORD_SIZE 512 +#define OPKG_OPK_USTAR_NAME_MAX_LEN 257 /* prefix[155] + '/' + name[100] + '\0' + */ + struct opkg_opk_ustar; struct opkg_opk_ustar_member { - char name[257]; /* prefix[155] + '/' + name[100] + '\0' */ + char name[OPKG_OPK_USTAR_NAME_MAX_LEN]; }; struct opkg_opk_ustar * |