summaryrefslogtreecommitdiffstats
path: root/cpukit/libnetworking/net/slcompress.c
diff options
context:
space:
mode:
authorRalf Corsepius <ralf.corsepius@rtems.org>2008-09-01 04:56:33 +0000
committerRalf Corsepius <ralf.corsepius@rtems.org>2008-09-01 04:56:33 +0000
commit42e10fa24f384e81a1551e7aef284d1e53b785c9 (patch)
tree8756ca4e5a71a734a2552b1fa714be7e6b1f7a1f /cpukit/libnetworking/net/slcompress.c
parentStop using old-style function definitions. (diff)
downloadrtems-42e10fa24f384e81a1551e7aef284d1e53b785c9.tar.bz2
Stop using old-style function definitions.
Diffstat (limited to '')
-rw-r--r--cpukit/libnetworking/net/slcompress.c27
1 files changed, 7 insertions, 20 deletions
diff --git a/cpukit/libnetworking/net/slcompress.c b/cpukit/libnetworking/net/slcompress.c
index 2d3503965b..91af105dce 100644
--- a/cpukit/libnetworking/net/slcompress.c
+++ b/cpukit/libnetworking/net/slcompress.c
@@ -64,9 +64,7 @@
#define BCOPY(p1, p2, n) bcopy((void *)(p1), (void *)(p2), (int)(n))
void
-sl_compress_init(comp, max_state)
- struct slcompress *comp;
- int max_state;
+sl_compress_init(struct slcompress *comp, int max_state)
{
register u_int i;
register struct cstate *tstate = comp->tstate;
@@ -156,11 +154,8 @@ sl_compress_init(comp, max_state)
* if m is an M_PKTHDR mbuf.
*/
u_int
-sl_compress_tcp(m, ip, comp, compress_cid)
- struct mbuf *m;
- register struct ip *ip;
- struct slcompress *comp;
- int compress_cid;
+sl_compress_tcp(struct mbuf *m, struct ip *ip, struct slcompress *comp,
+ int compress_cid)
{
register struct cstate *cs = comp->last_cs->cs_next;
register u_int hlen = ip->ip_hl;
@@ -416,11 +411,7 @@ uncompressed:
int
-sl_uncompress_tcp(bufp, len, type, comp)
- u_char **bufp;
- int len;
- u_int type;
- struct slcompress *comp;
+sl_uncompress_tcp(u_char **bufp, int len, u_int type, struct slcompress *comp)
{
u_char *hdr, *cp;
u_int hlen;
@@ -465,13 +456,9 @@ sl_uncompress_tcp(bufp, len, type, comp)
* in *hdrp and its length in *hlenp.
*/
int
-sl_uncompress_tcp_core(buf, buflen, total_len, type, comp, hdrp, hlenp)
- u_char *buf;
- int buflen, total_len;
- u_int type;
- struct slcompress *comp;
- u_char **hdrp;
- u_int *hlenp;
+sl_uncompress_tcp_core(u_char *buf, int buflen, int total_len,
+ u_int type, struct slcompress *comp,
+ u_char **hdrp, u_int *hlenp)
{
register u_char *cp;
register uint32_t hlen, changes;