summaryrefslogtreecommitdiff
path: root/usr.bin/telnet/ring.h
diff options
context:
space:
mode:
authorTodd C. Miller <millert@cvs.openbsd.org>2002-02-17 17:20:50 +0000
committerTodd C. Miller <millert@cvs.openbsd.org>2002-02-17 17:20:50 +0000
commit27d0dde5962a658b35998c2b70c596bcbcdfd987 (patch)
tree27d42b43522cf8f5b4fa0dab3cdfe1cf9f7557bc /usr.bin/telnet/ring.h
parentbed27375ef406db1690b5109c0a489be897bbc8a (diff)
telnet used a P macro instead of __P -- g/c that too.
Diffstat (limited to 'usr.bin/telnet/ring.h')
-rw-r--r--usr.bin/telnet/ring.h29
1 files changed, 13 insertions, 16 deletions
diff --git a/usr.bin/telnet/ring.h b/usr.bin/telnet/ring.h
index 97ff777fabf..50ae730e61e 100644
--- a/usr.bin/telnet/ring.h
+++ b/usr.bin/telnet/ring.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: ring.h,v 1.4 1998/05/15 03:16:42 art Exp $ */
+/* $OpenBSD: ring.h,v 1.5 2002/02/17 17:20:49 millert Exp $ */
/* $NetBSD: ring.h,v 1.5 1996/02/28 21:04:09 thorpej Exp $ */
/*
@@ -36,9 +36,6 @@
* from: @(#)ring.h 8.1 (Berkeley) 6/6/93
*/
-#include <sys/cdefs.h>
-#define P __P
-
/*
* This defines a structure for a ring buffer.
*
@@ -68,27 +65,27 @@ typedef struct {
/* Initialization routine */
extern int
- ring_init P((Ring *ring, unsigned char *buffer, int count));
+ ring_init(Ring *ring, unsigned char *buffer, int count);
/* Data movement routines */
extern void
- ring_supply_data P((Ring *ring, unsigned char *buffer, int count));
+ ring_supply_data(Ring *ring, unsigned char *buffer, int count);
#ifdef notdef
extern void
- ring_consume_data P((Ring *ring, unsigned char *buffer, int count));
+ ring_consume_data(Ring *ring, unsigned char *buffer, int count);
#endif
/* Buffer state transition routines */
extern void
- ring_supplied P((Ring *ring, int count)),
- ring_consumed P((Ring *ring, int count));
+ ring_supplied(Ring *ring, int count),
+ ring_consumed(Ring *ring, int count);
/* Buffer state query routines */
extern int
- ring_empty_count P((Ring *ring)),
- ring_empty_consecutive P((Ring *ring)),
- ring_full_count P((Ring *ring)),
- ring_full_consecutive P((Ring *ring));
+ ring_empty_count(Ring *ring),
+ ring_empty_consecutive(Ring *ring),
+ ring_full_count(Ring *ring),
+ ring_full_consecutive(Ring *ring);
#if defined(ENCRYPTION)
extern void
@@ -98,9 +95,9 @@ extern void
extern void
- ring_clear_mark P((Ring *)),
- ring_mark P((Ring *));
+ ring_clear_mark(Ring *),
+ ring_mark(Ring *);
extern int
- ring_at_mark P((Ring *));
+ ring_at_mark(Ring *);