summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorPatrick McDermott <patrick.mcdermott@libiquity.com>2023-05-06 00:45:09 (EDT)
committer Patrick McDermott <patrick.mcdermott@libiquity.com>2023-05-07 01:05:20 (EDT)
commit197411623bf69b3046a25ed44d63fc7e245ac7e3 (patch)
tree452f96f8ec99a1cdb48899a4ec1122db12009bf8 /src
parentbceab75f6330f82e55381c49026878e3a339a984 (diff)
ustar: Add linkname size macro
Diffstat (limited to 'src')
-rw-r--r--src/ustar.h15
1 files changed, 8 insertions, 7 deletions
diff --git a/src/ustar.h b/src/ustar.h
index 4c51070..57e6458 100644
--- a/src/ustar.h
+++ b/src/ustar.h
@@ -24,21 +24,22 @@
#include "dirent.h"
#include "gzip.h"
-#define OPKG_OPK_USTAR_RECORD_SIZE 512
-#define OPKG_OPK_USTAR_NAME_SIZE 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' */
+#define OPKG_OPK_USTAR_LINKNAME_SIZE 101 /* linkname[100] + '\0' */
struct opkg_opk_ustar;
struct opkg_opk_ustar_member {
- char name[OPKG_OPK_USTAR_NAME_SIZE];
+ char name [OPKG_OPK_USTAR_NAME_SIZE];
uint16_t mode;
uint64_t size;
int64_t mtime;
char type;
- char linkname[101];
- char uname [32];
- char gname [32];
+ char linkname[OPKG_OPK_USTAR_LINKNAME_SIZE];
+ char uname [32];
+ char gname [32];
struct opkg_opk_ustar_member *next;
};