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 /sbin/atm/atm/atm_eni.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 'sbin/atm/atm/atm_eni.c')
-rw-r--r-- | sbin/atm/atm/atm_eni.c | 34 |
1 files changed, 17 insertions, 17 deletions
diff --git a/sbin/atm/atm/atm_eni.c b/sbin/atm/atm/atm_eni.c index 272e48f..6bf0985 100644 --- a/sbin/atm/atm/atm_eni.c +++ b/sbin/atm/atm/atm_eni.c @@ -23,7 +23,7 @@ * Copies of this Software may be made, however, the above copyright * notice must be reproduced on all copies. * - * @(#) $Id: atm_eni.c,v 1.8 1998/08/26 23:29:31 mks Exp $ + * @(#) $Id: atm_eni.c,v 1.1 1998/09/15 08:22:45 phk Exp $ * */ @@ -35,17 +35,8 @@ * */ -#ifndef lint -static char *RCSid = "@(#) $Id: atm_eni.c,v 1.8 1998/08/26 23:29:31 mks Exp $"; -#endif - #include <sys/types.h> #include <sys/param.h> - -#include <errno.h> -#include <stdio.h> -#include <stdlib.h> -#include <string.h> #include <sys/socket.h> #include <net/if.h> #include <netinet/in.h> @@ -55,10 +46,19 @@ static char *RCSid = "@(#) $Id: atm_eni.c,v 1.8 1998/08/26 23:29:31 mks Exp $"; #include <netatm/atm_sap.h> #include <netatm/atm_sys.h> #include <netatm/atm_ioctl.h> +#include <dev/hea/eni_stats.h> +#include <errno.h> #include <libatm.h> +#include <stdio.h> +#include <stdlib.h> +#include <string.h> + #include "atm.h" -#include <dev/hea/eni_stats.h> + +#ifndef lint +__RCSID("@(#) $Id: atm_eni.c,v 1.1 1998/09/15 08:22:45 phk Exp $"); +#endif /* @@ -241,7 +241,7 @@ print_eni_oc3(vi) /* * Print the OC-3c info */ - printf("%7d %7d %7d %7d %7d %7d %7d\n", + printf("%7ld %7ld %7ld %7ld %7ld %7ld %7ld\n", stats->eni_st_oc3.oc3_sect_bip8, stats->eni_st_oc3.oc3_path_bip8, stats->eni_st_oc3.oc3_line_bip24, @@ -282,7 +282,7 @@ print_eni_atm(vi) /* * Print the ATM layer info */ - printf("%10d %10d\n", + printf("%10ld %10ld\n", stats->eni_st_atm.atm_rcvd, stats->eni_st_atm.atm_xmit); } @@ -318,7 +318,7 @@ print_eni_aal0(vi) /* * Print the AAL 0 info */ - printf("%10d %10d %10d\n", + printf("%10ld %10ld %10ld\n", stats->eni_st_aal0.aal0_rcvd, stats->eni_st_aal0.aal0_xmit, stats->eni_st_aal0.aal0_drops); @@ -355,7 +355,7 @@ print_eni_aal5(vi) /* * Print the AAL 5 info */ - printf("%10d %10d %5d %5d %9d %9d %5d %5d %5d\n", + printf("%10ld %10ld %5ld %5ld %9ld %9ld %5ld %5ld %5ld\n", stats->eni_st_aal5.aal5_rcvd, stats->eni_st_aal5.aal5_xmit, stats->eni_st_aal5.aal5_crc_len, @@ -397,7 +397,7 @@ print_eni_driver(vi) /* * Print the driver info */ - printf ( "%5d %5d %5d %5d %5d %5d %5d %5d %5d %5d %5d\n", + printf ( "%5ld %5ld %5ld %5ld %5ld %5ld %5ld %5ld %5ld %5ld %5ld\n", stats->eni_st_drv.drv_mm_toobig, stats->eni_st_drv.drv_mm_nodesc, stats->eni_st_drv.drv_mm_nobuf, @@ -419,7 +419,7 @@ print_eni_driver(vi) /* * Print the driver info */ - printf ( "%5d %5d %5d %5d %5d %5d %5d %7d %5d %7d\n", + printf ( "%5ld %5ld %5ld %5ld %5ld %5ld %5ld %7ld %5ld %7ld\n", stats->eni_st_drv.drv_rv_novcc, stats->eni_st_drv.drv_rv_intrq, stats->eni_st_drv.drv_rv_segdma, |