From 15540e094522e3eb237d6d6fdf0f904c7ec5762f Mon Sep 17 00:00:00 2001 From: andrew Date: Sat, 22 Dec 2012 04:11:59 +0000 Subject: 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 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 -- cgit v1.1