Skip to content

Commit

Permalink
removes unused qualifiers references XRPLF#376
Browse files Browse the repository at this point in the history
  • Loading branch information
zaphoyd committed Oct 7, 2014
1 parent d6c9905 commit d7a7112
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions websocketpp/sha1/sha1.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -42,23 +42,21 @@ namespace sha1 {
namespace // local
{
// Rotate an integer value to left.
inline const unsigned int rol(const unsigned int value,
const unsigned int steps)
{
inline unsigned int rol(unsigned int value, unsigned int steps) {
return ((value << steps) | (value >> (32 - steps)));
}

// Sets the first 16 integers in the buffert to zero.
// Used for clearing the W buffert.
inline void clearWBuffert(unsigned int* buffert)
inline void clearWBuffert(unsigned int * buffert)
{
for (int pos = 16; --pos >= 0;)
{
buffert[pos] = 0;
}
}

inline void innerHash(unsigned int* result, unsigned int* w)
inline void innerHash(unsigned int * result, unsigned int * w)
{
unsigned int a = result[0];
unsigned int b = result[1];
Expand Down

0 comments on commit d7a7112

Please sign in to comment.