"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "littleutils/sha1.c" between
littleutils-1.2.4.tar.lz and littleutils-1.2.5.tar.lz

About: littleutils are a collection of small and simple utilities (rename files, search for duplicate files, ...).

sha1.c  (littleutils-1.2.4.tar.lz):sha1.c  (littleutils-1.2.5.tar.lz)
skipping to change at line 23 skipping to change at line 23
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details. GNU General Public License for more details.
You should have received a copy of the GNU General Public License You should have received a copy of the GNU General Public License
along with this program; if not, see <https://www.gnu.org/licenses/>. */ along with this program; if not, see <https://www.gnu.org/licenses/>. */
/* Written by Scott G. Miller /* Written by Scott G. Miller
Credits: Credits:
Robert Klep <robert@ilse.nl> -- Expansion function fix Robert Klep <robert@ilse.nl> -- Expansion function fix
Modifications for portability and partial file reads by Brian Lindholm, Modifications for portability and partial file reads by Brian Lindholm,
2004-2020. */ 2004-2021. */
#include <config.h> #include <config.h>
#ifdef HAVE_SYS_TYPES_H
# include <sys/types.h>
#endif
#include "sha1.h"
#ifdef HAVE_STDALIGN_H #ifdef HAVE_STDALIGN_H
# include <stdalign.h> # include <stdalign.h>
#endif #endif
#ifdef HAVE_STDINT_H #ifdef HAVE_STDINT_H
# include <stdint.h> # include <stdint.h>
#endif #endif
#ifdef HAVE_STDLIB_H #ifdef HAVE_STDLIB_H
# include <stdlib.h> # include <stdlib.h>
#endif #endif
#ifdef HAVE_STRING_H #ifdef HAVE_STRING_H
# include <string.h> # include <string.h>
#endif #endif
#ifdef HAVE_SYS_TYPES_H
# include <sys/types.h>
#endif
#include "sha1.h"
#ifdef WORDS_BIGENDIAN #ifdef WORDS_BIGENDIAN
# define SWAP(n) (n) # define SWAP(n) (n)
#else #else
# ifdef HAVE_BYTESWAP_H # ifdef HAVE_BYTESWAP_H
# include <byteswap.h> # include <byteswap.h>
# define SWAP(n) bswap_32 (n) # define SWAP(n) bswap_32 (n)
# else # else
# define SWAP(n) (((n) << 24) | (((n) & 0xff00) << 8) | (((n) >> 8) & 0xff00) | ((n) >> 24)) # define SWAP(n) (((n) << 24) | (((n) & 0xff00) << 8) | (((n) >> 8) & 0xff00) | ((n) >> 24))
# endif # endif
 End of changes. 3 change blocks. 
7 lines changed or deleted 6 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)