From b6524d0d221f3a93b72912de905baa593a35a1fa Mon Sep 17 00:00:00 2001 From: Ethan Sommer Date: Thu, 10 Sep 2020 16:53:07 -0400 Subject: [PATCH] improve alignment of struct optparse decrease padding by sorting members by decreasing size --- optparse.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/optparse.h b/optparse.h index 3a577a7..76beba2 100644 --- a/optparse.h +++ b/optparse.h @@ -52,12 +52,12 @@ #endif struct optparse { + char errmsg[64]; char **argv; + char *optarg; int permute; int optind; int optopt; - char *optarg; - char errmsg[64]; int subopt; };