summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSimon Josefsson <simon@josefsson.org>2008-01-31 11:13:13 +0100
committerSimon Josefsson <simon@josefsson.org>2008-01-31 11:13:13 +0100
commitec5ea46453f1b8d51a352c41b948e2b1b69a88b6 (patch)
tree5c55e0f296843d58e94b8e25fce40371bc1f699a
parentdcad82d8011a5afaabed8389d523a99c56909af5 (diff)
downloadgnulib-ec5ea46453f1b8d51a352c41b948e2b1b69a88b6.tar.gz
sha1.c (set_uint32): Mark function as static.
-rw-r--r--ChangeLog5
-rw-r--r--lib/sha1.c4
2 files changed, 7 insertions, 2 deletions
diff --git a/ChangeLog b/ChangeLog
index 2bf6d5a915..f7711d8386 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,10 @@
2008-01-31 Simon Josefsson <simon@josefsson.org>
+ * lib/sha1.c (set_uint32): Mark function as static.
+
+2008-01-31 Simon Josefsson <simon@josefsson.org>
+
+ md2: clarify comments to say that alignment is not required.
* lib/md2.h: Remove warning about alignment in comment.
* lib/md2.c (md2_read_ctx, md2_finish_ctx): Doc fix, alignment has
never been required.
diff --git a/lib/sha1.c b/lib/sha1.c
index d9e99d8624..22172a950d 100644
--- a/lib/sha1.c
+++ b/lib/sha1.c
@@ -1,7 +1,7 @@
/* sha1.c - Functions to compute SHA1 message digest of files or
memory blocks according to the NIST specification FIPS-180-1.
- Copyright (C) 2000, 2001, 2003, 2004, 2005, 2006 Free Software
+ Copyright (C) 2000, 2001, 2003, 2004, 2005, 2006, 2008 Free Software
Foundation, Inc.
This program is free software; you can redistribute it and/or modify it
@@ -70,7 +70,7 @@ sha1_init_ctx (struct sha1_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 */
-void
+static void
set_uint32 (char *cp, uint32_t v)
{
memcpy (cp, &v, 4);