summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorandrew <andrew@FreeBSD.org>2012-12-22 04:11:59 +0000
committerandrew <andrew@FreeBSD.org>2012-12-22 04:11:59 +0000
commit15540e094522e3eb237d6d6fdf0f904c7ec5762f (patch)
treed3ee49cb5639a82e7897ebdd91712413b54f83e3
parent0d3b266bb9fe819afa4a401d0518254eb5fe1efb (diff)
downloadFreeBSD-src-15540e094522e3eb237d6d6fdf0f904c7ec5762f.zip
FreeBSD-src-15540e094522e3eb237d6d6fdf0f904c7ec5762f.tar.gz
Make struct fstate aligned to the same as an int as its pointer is cast to
an int pointer in args.c. This fixes an issue with ARM where the struct will be byte aligned but an int pointer must be 4 byte aligned.
-rw-r--r--usr.bin/indent/indent_globs.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/usr.bin/indent/indent_globs.h b/usr.bin/indent/indent_globs.h
index 087f41c..2ea1d8d 100644
--- a/usr.bin/indent/indent_globs.h
+++ b/usr.bin/indent/indent_globs.h
@@ -213,7 +213,7 @@ struct fstate {
char font[4];
char size;
int allcaps:1;
-};
+} __aligned(sizeof(int));
char *chfont(struct fstate *, struct fstate *, char *);
struct fstate
OpenPOWER on IntegriCloud