summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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;
};