From 20cb252b483c6797a77219be3faa6513e35adf51 Mon Sep 17 00:00:00 2001 From: Patrick McDermott Date: Fri, 14 Apr 2023 15:00:58 -0400 Subject: Eliminate magic numbers --- (limited to 'src/ustar.h') 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 * -- cgit v0.9.1