diff options
author | rwatson <rwatson@FreeBSD.org> | 2006-03-24 13:58:23 +0000 |
---|---|---|
committer | rwatson <rwatson@FreeBSD.org> | 2006-03-24 13:58:23 +0000 |
commit | beb8ed1d59dd3b6f3ad8bdda8f32d9b46f54e220 (patch) | |
tree | 53eceb3f9855d26bece84c5cbe7c25c2b549aa31 /sys/netipx/ipx_pcb.c | |
parent | bf9a7919939ac869417c9254801036107b56da01 (diff) | |
download | FreeBSD-src-beb8ed1d59dd3b6f3ad8bdda8f32d9b46f54e220.zip FreeBSD-src-beb8ed1d59dd3b6f3ad8bdda8f32d9b46f54e220.tar.gz |
Clean up and style(9) SPX code prior to significant functional changes
being committed:
- Wrap comments more evenly on right border.
- Clean up braces.
Also, along similar lines:
- Assert some pointers are non-NULL before dereferencing them.
- Remove one assertion that looks, on face value, poor.
MFC after: 1 month
Diffstat (limited to 'sys/netipx/ipx_pcb.c')
-rw-r--r-- | sys/netipx/ipx_pcb.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/sys/netipx/ipx_pcb.c b/sys/netipx/ipx_pcb.c index 12f6577..7b29d12 100644 --- a/sys/netipx/ipx_pcb.c +++ b/sys/netipx/ipx_pcb.c @@ -1,8 +1,9 @@ /*- - * Copyright (c) 2004-2005 Robert N. M. Watson - * Copyright (c) 1995, Mike Mitchell * Copyright (c) 1984, 1985, 1986, 1987, 1993 - * The Regents of the University of California. All rights reserved. + * The Regents of the University of California. + * Copyright (c) 1995, Mike Mitchell + * Copyright (c) 2004-2006 Robert N. M. Watson + * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions @@ -63,6 +64,7 @@ ipx_pcballoc(so, head, td) { register struct ipxpcb *ipxp; + KASSERT(so->so_pcb == NULL, ("ipx_pcballoc: so_pcb != NULL")); IPX_LIST_LOCK_ASSERT(); MALLOC(ipxp, struct ipxpcb *, sizeof *ipxp, M_PCB, M_NOWAIT | M_ZERO); |