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

Diff for /src/usr.bin/telnet/ring.c between version 1.7 and 1.8

version 1.7, 2014/07/20 06:24:19 version 1.8, 2014/07/20 08:12:46
Line 30 
Line 30 
  * SUCH DAMAGE.   * SUCH DAMAGE.
  */   */
   
 #include "telnet_locl.h"  #include <string.h>
   #include "ring.h"
   
 /*  /*
  * This defines a structure for a ring buffer.   * This defines a structure for a ring buffer.
Line 66 
Line 67 
  * to ZERO on allocation, we need to make sure, when interpreting the   * to ZERO on allocation, we need to make sure, when interpreting the
  * clock, that when the times are EQUAL, then the buffer is FULL.   * clock, that when the times are EQUAL, then the buffer is FULL.
  */   */
 static u_long ring_clock = 0;  static unsigned long ring_clock = 0;
   
   
 #define ring_empty(d) (((d)->consume == (d)->supply) && \  #define ring_empty(d) (((d)->consume == (d)->supply) && \

Legend:
Removed from v.1.7  
changed lines
  Added in v.1.8