bug-gnulib
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[PATCH 04/16] crypto/md5: avoid 'static inline'


From: Paul Eggert
Subject: [PATCH 04/16] crypto/md5: avoid 'static inline'
Date: Sat, 18 Aug 2012 17:52:02 -0700
User-agent: Mozilla/5.0 (X11; Linux i686; rv:14.0) Gecko/20120714 Thunderbird/14.0

* lib/md5.c (set_uint32): Now static, not static inline.
* m4/md5.m4 (gl_MD5): Do not require AC_C_INLINE.
---
 ChangeLog |    4 ++++
 lib/md5.c |    2 +-
 m4/md5.m4 |    3 +--
 3 files changed, 6 insertions(+), 3 deletions(-)

diff --git a/ChangeLog b/ChangeLog
index 66eb057..890941d 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,9 @@
 2012-08-18  Paul Eggert  <address@hidden>
 
+       crypto/md5: avoid 'static inline'
+       * lib/md5.c (set_uint32): Now static, not static inline.
+       * m4/md5.m4 (gl_MD5): Do not require AC_C_INLINE.
+
        lstat: avoid 'static inline'
        * lib/lstat.c (orig_lstat): Now static, not static inline.
        * m4/lstat.m4 (gl_PREREQ_LSTAT): Do not require AC_C_INLINE.
diff --git a/lib/md5.c b/lib/md5.c
index 66ede23..3f564d1 100644
--- a/lib/md5.c
+++ b/lib/md5.c
@@ -83,7 +83,7 @@ md5_init_ctx (struct md5_ctx *ctx)
 /* Copy the 4 byte value from v into the memory location pointed to by *cp,
    If your architecture allows unaligned access this is equivalent to
    * (uint32_t *) cp = v  */
-static inline void
+static void
 set_uint32 (char *cp, uint32_t v)
 {
   memcpy (cp, &v, sizeof v);
diff --git a/m4/md5.m4 b/m4/md5.m4
index e22f7bd..85ed894 100644
--- a/m4/md5.m4
+++ b/m4/md5.m4
@@ -1,4 +1,4 @@
-# md5.m4 serial 12
+# md5.m4 serial 13
 dnl Copyright (C) 2002-2006, 2008-2012 Free Software Foundation, Inc.
 dnl This file is free software; the Free Software Foundation
 dnl gives unlimited permission to copy and/or distribute it,
@@ -8,6 +8,5 @@ AC_DEFUN([gl_MD5],
 [
   dnl Prerequisites of lib/md5.c.
   AC_REQUIRE([gl_BIGENDIAN])
-  AC_REQUIRE([AC_C_INLINE])
   :
 ])
-- 
1.7.6.5




reply via email to

[Prev in Thread] Current Thread [Next in Thread]