diff options
author | Luca Ceresoli | 2017-11-07 14:39:09 +0100 |
---|---|---|
committer | Karel Zak | 2017-11-08 11:49:59 +0100 |
commit | 424cee0f06ece9473786c189ab4741e1dea7061d (patch) | |
tree | 45c3ef58758103fec8e582149a0a380b89cd4fac | |
parent | docs: update TODO (diff) | |
download | kernel-qcow2-util-linux-424cee0f06ece9473786c189ab4741e1dea7061d.tar.gz kernel-qcow2-util-linux-424cee0f06ece9473786c189ab4741e1dea7061d.tar.xz kernel-qcow2-util-linux-424cee0f06ece9473786c189ab4741e1dea7061d.zip |
md5: declare byteReverse as static
byteReverse() is an internal function in md5.c, and is not exposed via
any header file, but it is not declared as static. This is a problem
with the md5.c file since it is copied more or less verbatim in other
programs (fontconfig and pjsip among others), causing a link error
when linking two of them together.
Fixes link failures such as:
http://autobuild.buildroot.net/results/419ab2c0e034cc68991281c51caa8271b0fadbab/build-end.log
Signed-off-by: Luca Ceresoli <luca@lucaceresoli.net>
-rw-r--r-- | lib/md5.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -21,13 +21,13 @@ #if !defined(WORDS_BIGENDIAN) #define byteReverse(buf, len) /* Nothing */ #else -void byteReverse(unsigned char *buf, unsigned longs); +static void byteReverse(unsigned char *buf, unsigned longs); #ifndef ASM_MD5 /* * Note: this code is harmless on little-endian machines. */ -void byteReverse(unsigned char *buf, unsigned longs) +static void byteReverse(unsigned char *buf, unsigned longs) { uint32_t t; do { |