From 34fa2a3532fbdb9fac94f895d1e9eae4b1d557fa Mon Sep 17 00:00:00 2001 From: Andrew Turner Date: Sat, 22 Dec 2012 04:11:59 +0000 Subject: [PATCH] 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. --- usr.bin/indent/indent_globs.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/usr.bin/indent/indent_globs.h b/usr.bin/indent/indent_globs.h index 087f41c2390d..2ea1d8da7fbf 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