svn commit: r244578 - head/usr.bin/indent
Andrew Turner
andrew at FreeBSD.org
Sat Dec 22 04:12:00 UTC 2012
Author: andrew
Date: Sat Dec 22 04:11:59 2012
New Revision: 244578
URL: http://svnweb.freebsd.org/changeset/base/244578
Log:
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.
Modified:
head/usr.bin/indent/indent_globs.h
Modified: head/usr.bin/indent/indent_globs.h
==============================================================================
--- head/usr.bin/indent/indent_globs.h Sat Dec 22 01:17:49 2012 (r244577)
+++ head/usr.bin/indent/indent_globs.h Sat Dec 22 04:11:59 2012 (r244578)
@@ -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
More information about the svn-src-all
mailing list