summaryrefslogtreecommitdiffstats
path: root/usr.sbin/ppp/mbuf.h
diff options
context:
space:
mode:
authorbrian <brian@FreeBSD.org>1997-10-26 01:04:02 +0000
committerbrian <brian@FreeBSD.org>1997-10-26 01:04:02 +0000
commit486b8925ecb0d408e403474828e20c1cce8aaec8 (patch)
treecca66974908224bf517868aaafb2e4acd1abe88d /usr.sbin/ppp/mbuf.h
parent1d2927c9fac7bcfe68bf6ab502c716adc91d6f09 (diff)
downloadFreeBSD-src-486b8925ecb0d408e403474828e20c1cce8aaec8.zip
FreeBSD-src-486b8925ecb0d408e403474828e20c1cce8aaec8.tar.gz
Cosmetic (no functional changes):
o Add missing $Id$s o Move extern decls from .c -> .h files o Staticize o Remove #includes from .h files o style(9)ify includes o bcopy -> memcpy bzero -> memset bcmp -> memcmp index -> strchr rindex -> strrchr o Move timeout.h -> timer.h (making it consistent w/ timer.c) o Add -Wmissing-prototypes
Diffstat (limited to 'usr.sbin/ppp/mbuf.h')
-rw-r--r--usr.sbin/ppp/mbuf.h29
1 files changed, 12 insertions, 17 deletions
diff --git a/usr.sbin/ppp/mbuf.h b/usr.sbin/ppp/mbuf.h
index 1c88fcc..07cd5ae 100644
--- a/usr.sbin/ppp/mbuf.h
+++ b/usr.sbin/ppp/mbuf.h
@@ -15,14 +15,11 @@
* IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED
* WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE.
*
- * $Id: mbuf.h,v 1.5 1997/06/09 03:27:29 brian Exp $
+ * $Id: mbuf.h,v 1.6 1997/08/25 00:29:20 brian Exp $
*
* TODO:
*/
-#ifndef _MBUF_H_
-#define _MBUF_H_
-
struct mbuf {
u_char *base; /* pointer to top of buffer space */
short size; /* size allocated from base */
@@ -55,16 +52,14 @@ struct mqueue {
#define MB_IPQ 10
#define MB_MAX MB_IPQ
-extern int plength(struct mbuf * bp);
-extern struct mbuf *mballoc(int cnt, int type);
-extern struct mbuf *mbfree(struct mbuf * bp);
-extern void pfree(struct mbuf * bp);
-extern void mbwrite(struct mbuf * bp, u_char * ptr, int cnt);
-extern struct mbuf *mbread(struct mbuf * bp, u_char * ptr, int cnt);
-extern void DumpBp(struct mbuf * bp);
-extern void Enqueue(struct mqueue * queue, struct mbuf * bp);
-extern struct mbuf *Dequeue(struct mqueue * queue);
-extern void LogMemory();
-extern int ShowMemMap();
-
-#endif
+extern int plength(struct mbuf *);
+extern struct mbuf *mballoc(int, int);
+extern struct mbuf *mbfree(struct mbuf *);
+extern void pfree(struct mbuf *);
+extern void mbwrite(struct mbuf *, u_char *, int);
+extern struct mbuf *mbread(struct mbuf *, u_char *, int);
+extern void DumpBp(struct mbuf *);
+extern void Enqueue(struct mqueue *, struct mbuf *);
+extern struct mbuf *Dequeue(struct mqueue *);
+extern void LogMemory(void);
+extern int ShowMemMap(void);
OpenPOWER on IntegriCloud