VServer 1.9.2 (patch-2.6.8.1-vs1.9.2.diff)
[linux-2.6.git] / drivers / net / skfp / smtdef.c
index beaed26..5a0c8db 100644 (file)
@@ -72,13 +72,11 @@ static const char ID_sccs[] = "@(#)smtdef.c 2.53 99/08/11 (C) SK " ;
 #define DEFAULT_LCT_EXTEND     50
 
 /* Forward declarations */
-extern  void   smt_reset_defaults ();
-static void    smt_init_mib ();
+void smt_reset_defaults(struct s_smc *smc, int level);
+static void smt_init_mib(struct s_smc *smc, int level);
+static int set_min_max(int maxflag, u_long mib, u_long limit, u_long *oper);
 
-static int set_min_max() ;
-
-void smt_set_defaults(smc)
-struct s_smc *smc ;
+void smt_set_defaults(struct s_smc *smc)
 {
        smt_reset_defaults(smc,0) ;
 }
@@ -86,9 +84,7 @@ struct s_smc *smc ;
 #define MS2BCLK(x)     ((x)*12500L)
 #define US2BCLK(x)     ((x)*1250L)
 
-void smt_reset_defaults(smc,level)
-struct s_smc *smc ;
-int level ;
+void smt_reset_defaults(struct s_smc *smc, int level)
 {
        struct smt_config       *smt ;
        int                     i ;
@@ -170,9 +166,7 @@ static const char man_data[32] =
 /*      01234567890123456789012345678901       */
        "xxxSK-NET FDDI SMT 7.3 - V2.8.8" ;
 
-static void smt_init_mib(smc,level)
-struct s_smc *smc ;
-int level ;
+static void smt_init_mib(struct s_smc *smc, int level)
 {
        struct fddi_mib         *mib ;
        struct fddi_mib_p       *pm ;
@@ -268,7 +262,7 @@ int level ;
                 */
                /* Attention: don't initialize mib pointer here! */
                /*  It must be initialized during phase 2 */
-               smc->y[port].mib = ;
+               smc->y[port].mib = NULL;
                mib->fddiSMTPORTIndexes[port] = port+INDEX_PORT ;
 
                pm->fddiPORTIndex = port+INDEX_PORT ;
@@ -292,8 +286,7 @@ int level ;
        (void) smt_set_mac_opvalues(smc) ;
 }
 
-int smt_set_mac_opvalues(smc)
-struct s_smc *smc ;
+int smt_set_mac_opvalues(struct s_smc *smc)
 {
        int     st ;
        int     st2 ;
@@ -318,8 +311,7 @@ struct s_smc *smc ;
        return(st) ;
 }
 
-void smt_fixup_mib(smc)
-struct s_smc *smc ;
+void smt_fixup_mib(struct s_smc *smc)
 {
 #ifdef CONCENTRATOR
        switch (smc->s.sas) {
@@ -355,11 +347,7 @@ struct s_smc *smc ;
  *     use mib
  * NOTE : numbers are negative, negate comparison !
  */
-static int set_min_max(maxflag,mib,limit,oper)
-int maxflag ;
-u_long mib ;
-u_long limit ;
-u_long *oper ;
+static int set_min_max(int maxflag, u_long mib, u_long limit, u_long *oper)
 {
        u_long  old ;
        old = *oper ;
@@ -369,3 +357,4 @@ u_long *oper ;
                *oper = mib ;
        return(old != *oper) ;
 }
+