diff options
author | mks <mks@FreeBSD.org> | 1999-07-01 20:48:59 +0000 |
---|---|---|
committer | mks <mks@FreeBSD.org> | 1999-07-01 20:48:59 +0000 |
commit | 7707e35f12ca77282d0d391e98bf0db7bf1b734c (patch) | |
tree | 4a3901b074c8e4dd2814e00f82d841659871f67a /usr.sbin/atm/scspd/scsp_if.c | |
parent | 22e38b45b20e68f38edb59cfdd12a4422d39c6c4 (diff) | |
download | FreeBSD-src-7707e35f12ca77282d0d391e98bf0db7bf1b734c.zip FreeBSD-src-7707e35f12ca77282d0d391e98bf0db7bf1b734c.tar.gz |
Modify code to be -Wall'able.
PR: bin/11315
Diffstat (limited to 'usr.sbin/atm/scspd/scsp_if.c')
-rw-r--r-- | usr.sbin/atm/scspd/scsp_if.c | 36 |
1 files changed, 13 insertions, 23 deletions
diff --git a/usr.sbin/atm/scspd/scsp_if.c b/usr.sbin/atm/scspd/scsp_if.c index 1930990..e9ced0a 100644 --- a/usr.sbin/atm/scspd/scsp_if.c +++ b/usr.sbin/atm/scspd/scsp_if.c @@ -23,7 +23,7 @@ * Copies of this Software may be made, however, the above copyright * notice must be reproduced on all copies. * - * @(#) $Id: scsp_if.c,v 1.5 1998/08/13 20:11:14 johnc Exp $ + * @(#) $Id: scsp_if.c,v 1.1 1998/09/15 08:23:16 phk Exp $ * */ @@ -36,18 +36,8 @@ * */ - -#ifndef lint -static char *RCSid = "@(#) $Id: scsp_if.c,v 1.5 1998/08/13 20:11:14 johnc Exp $"; -#endif - #include <sys/types.h> #include <sys/param.h> - -#include <errno.h> -#include <stdio.h> -#include <stdlib.h> -#include <syslog.h> #include <sys/socket.h> #include <net/if.h> #include <netinet/in.h> @@ -59,11 +49,22 @@ static char *RCSid = "@(#) $Id: scsp_if.c,v 1.5 1998/08/13 20:11:14 johnc Exp $" #include <netatm/atm_sys.h> #include <netatm/atm_ioctl.h> +#include <errno.h> #include <libatm.h> +#include <stdio.h> +#include <stdlib.h> +#include <string.h> +#include <syslog.h> +#include <unistd.h> + #include "scsp_msg.h" #include "scsp_if.h" #include "scsp_var.h" +#ifndef lint +__RCSID("@(#) $Id: scsp_if.c,v 1.1 1998/09/15 08:23:16 phk Exp $"); +#endif + /* * SCSP client server interface FSM actions @@ -335,7 +336,7 @@ scsp_client_act_05(dcsp, msg, cmsg) Scsp_msg *msg; Scsp_if_msg *cmsg; { - int i, rc; + int i; Scsp_cse *csep, *ncsep; /* @@ -356,17 +357,6 @@ scsp_client_act_05(dcsp, msg, cmsg) dcsp->sd_client_state = SCSP_CIFSM_SUM; return(0); - -act_05_fail: - for (csep = dcsp->sd_ca_csas; csep; csep = ncsep) { - ncsep = csep->sc_next; - UNLINK(csep, Scsp_cse, dcsp->sd_ca_csas, sc_next); - UM_FREE(csep); - } - - dcsp->sd_client_state = SCSP_CIFSM_NULL; - - return(rc); } |