mirror of
https://github.com/4jcraft/4jcraft.git
synced 2026-05-12 17:47:13 +00:00
fix: undo some mistakes
This commit is contained in:
parent
052a656673
commit
95c26f69cf
|
|
@ -90,7 +90,7 @@ void pipe_select_interrupter::recreate()
|
|||
|
||||
void pipe_select_interrupter::interrupt()
|
||||
{
|
||||
char uint8_t = 0;
|
||||
char byte = 0;
|
||||
signed_size_type result = ::write(write_descriptor_, &byte, 1);
|
||||
(void)result;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -140,7 +140,7 @@ void socket_select_interrupter::recreate()
|
|||
|
||||
void socket_select_interrupter::interrupt()
|
||||
{
|
||||
char uint8_t = 0;
|
||||
char byte = 0;
|
||||
socket_ops::buf b;
|
||||
socket_ops::init_buf(b, &byte, 1);
|
||||
boost::system::error_code ec;
|
||||
|
|
|
|||
|
|
@ -172,7 +172,7 @@ public:
|
|||
// External Operations
|
||||
void process_bit( bool bit );
|
||||
void process_bits( unsigned char bits, std::size_t bit_count );
|
||||
void process_byte( unsigned char uint8_t );
|
||||
void process_byte( unsigned char byte );
|
||||
void process_block( void const *bytes_begin, void const *bytes_end );
|
||||
void process_bytes( void const *buffer, std::size_t byte_count );
|
||||
|
||||
|
|
@ -223,14 +223,14 @@ public:
|
|||
void reset( value_type new_rem = InitRem );
|
||||
|
||||
// External Operations
|
||||
void process_byte( unsigned char uint8_t );
|
||||
void process_byte( unsigned char byte );
|
||||
void process_block( void const *bytes_begin, void const *bytes_end );
|
||||
void process_bytes( void const *buffer, std::size_t byte_count );
|
||||
|
||||
value_type checksum() const;
|
||||
|
||||
// Operators
|
||||
void operator ()( unsigned char uint8_t );
|
||||
void operator ()( unsigned char byte );
|
||||
value_type operator ()() const;
|
||||
|
||||
private:
|
||||
|
|
|
|||
|
|
@ -88,7 +88,7 @@ inline void sha1::reset()
|
|||
|
||||
inline void sha1::process_byte(unsigned char byte)
|
||||
{
|
||||
process_byte_impl(uint8_t);
|
||||
process_byte_impl(byte);
|
||||
|
||||
// size_t max value = 0xFFFFFFFF
|
||||
//if (bit_count_low + 8 >= 0x100000000) { // would overflow
|
||||
|
|
|
|||
Loading…
Reference in a new issue