diff options
Diffstat (limited to 'sys/dev/hea/eni.c')
-rw-r--r-- | sys/dev/hea/eni.c | 22 |
1 files changed, 10 insertions, 12 deletions
diff --git a/sys/dev/hea/eni.c b/sys/dev/hea/eni.c index 8c3e0604c1ac..977ed9bf2060 100644 --- a/sys/dev/hea/eni.c +++ b/sys/dev/hea/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: eni.c,v 1.4 1998/12/04 22:54:45 archie Exp $ + * @(#) $Id: eni.c,v 1.1 1998/09/15 08:22:52 phk Exp $ * */ @@ -35,20 +35,20 @@ * */ +#ifndef lint +static char *RCSid = "@(#) $Id: eni.c,v 1.1 1998/09/15 08:22:52 phk Exp $"; +#endif + #include <netatm/kern_include.h> #include <dev/hea/eni_stats.h> #include <dev/hea/eni.h> #include <dev/hea/eni_var.h> -#ifndef lint -__RCSID("@(#) $Id: eni.c,v 1.4 1998/12/04 22:54:45 archie Exp $"); -#endif - /* * Typedef local functions */ -static const char *eni_pci_probe __P((pcici_t, pcidi_t)); +static char *eni_pci_probe __P((pcici_t, pcidi_t)); static void eni_pci_attach __P((pcici_t, int)); static int eni_get_ack __P((Eni_unit *)); static int eni_get_sebyte __P((Eni_unit *)); @@ -98,7 +98,7 @@ DATA_SET ( pcidevice_set, eni_pci_device ); * NULL unrecognized vendor/device * */ -static const char * +static char * eni_pci_probe ( pcici_t config_id, pcidi_t device_id ) { @@ -496,12 +496,10 @@ eni_pci_attach ( pcici_t config_id, int unit ) * Make a hw version number from the ID register values. * Format: {Midway ID}.{Mother board ID}.{Daughter board ID} */ - snprintf ( eup->eu_config.ac_hard_vers, - sizeof ( eup->eu_config.ac_hard_vers ), - "%ld/%ld/%ld", - (val >> ID_SHIFT) & ID_MASK, + sprintf ( eup->eu_config.ac_hard_vers, "%ld/%ld/%ld", + (val >> ID_SHIFT) & ID_MASK, (val >> MID_SHIFT) & MID_MASK, - (val >> DID_SHIFT) & DID_MASK ); + (val >> DID_SHIFT) & DID_MASK ); /* * There is no software version number |