[BACK]Return to buffer.c CVS log [TXT][DIR] Up to [local] / src / usr.bin / ssh

Diff for /src/usr.bin/ssh/Attic/buffer.c between version 1.31 and 1.32

version 1.31, 2006/08/03 03:34:41 version 1.32, 2010/02/09 03:56:28
Line 158 
Line 158 
 /* Returns the number of bytes of data in the buffer. */  /* Returns the number of bytes of data in the buffer. */
   
 u_int  u_int
 buffer_len(Buffer *buffer)  buffer_len(const Buffer *buffer)
 {  {
         return buffer->end - buffer->offset;          return buffer->end - buffer->offset;
 }  }
Line 226 
Line 226 
 /* Returns a pointer to the first used byte in the buffer. */  /* Returns a pointer to the first used byte in the buffer. */
   
 void *  void *
 buffer_ptr(Buffer *buffer)  buffer_ptr(const Buffer *buffer)
 {  {
         return buffer->buf + buffer->offset;          return buffer->buf + buffer->offset;
 }  }
Line 234 
Line 234 
 /* Dumps the contents of the buffer to stderr. */  /* Dumps the contents of the buffer to stderr. */
   
 void  void
 buffer_dump(Buffer *buffer)  buffer_dump(const Buffer *buffer)
 {  {
         u_int i;          u_int i;
         u_char *ucp = buffer->buf;          u_char *ucp = buffer->buf;

Legend:
Removed from v.1.31  
changed lines
  Added in v.1.32