]> git.ipfire.org Git - thirdparty/coreutils.git/commitdiff
(struct sha1_ctx): Mark buffer as being aligned.
authorPaul Eggert <eggert@cs.ucla.edu>
Tue, 13 Sep 2005 23:32:15 +0000 (23:32 +0000)
committerPaul Eggert <eggert@cs.ucla.edu>
Tue, 13 Sep 2005 23:32:15 +0000 (23:32 +0000)
lib/sha1.h

index b660cd0f3f89e8244225521f7877551d736b267a..bb48855b8da8b694f33bdcd8b03edf692789c786 100644 (file)
@@ -1,6 +1,6 @@
 /* Declarations of functions and data types used for SHA1 sum
    library functions.
-   Copyright (C) 2000, 2001, 2003 Free Software Foundation, Inc.
+   Copyright (C) 2000, 2001, 2003, 2005 Free Software Foundation, Inc.
 
    This program is free software; you can redistribute it and/or modify it
    under the terms of the GNU General Public License as published by the
@@ -33,7 +33,7 @@ struct sha1_ctx
 
   md5_uint32 total[2];
   md5_uint32 buflen;
-  char buffer[128];
+  char buffer[128] __attribute__ ((__aligned__ (__alignof__ (md5_uint32))));
 };