netdev
[Top] [All Lists]

[PATCH] (1/11) netrom - fix sysctl initializers

To: "David S. Miller" <davem@xxxxxxxxxx>, Jeroen Vreeken <pe1rxq@xxxxxxxxx>
Subject: [PATCH] (1/11) netrom - fix sysctl initializers
From: Stephen Hemminger <shemminger@xxxxxxxx>
Date: Wed, 13 Aug 2003 15:39:14 -0700
Cc: netdev@xxxxxxxxxxx, linux-hams@xxxxxxxxxxxxxxx
Organization: Open Source Development Lab
Sender: netdev-bounce@xxxxxxxxxxx
From: Jeroen Vreeken <pe1rxq@xxxxxxxxx>

Change initializers for syctl values.


diff -Nru a/net/netrom/sysctl_net_netrom.c b/net/netrom/sysctl_net_netrom.c
--- a/net/netrom/sysctl_net_netrom.c    Wed Aug 13 11:58:15 2003
+++ b/net/netrom/sysctl_net_netrom.c    Wed Aug 13 11:58:15 2003
@@ -15,9 +15,9 @@
 /*
  *     Values taken from NET/ROM documentation.
  */
-static int min_quality[1],       max_quality[] = {255};
-static int min_obs[1],           max_obs[]     = {255};
-static int min_ttl[1],           max_ttl[]     = {255};
+static int min_quality[] = {0}, max_quality[] = {255};
+static int min_obs[]     = {0}, max_obs[]     = {255};
+static int min_ttl[]     = {0}, max_ttl[]     = {255};
 static int min_t1[]      = {5 * HZ};
 static int max_t1[]      = {600 * HZ};
 static int min_n2[]      = {2}, max_n2[]      = {127};
@@ -28,7 +28,7 @@
 static int min_window[]  = {1}, max_window[]  = {127};
 static int min_idle[]    = {0 * HZ};
 static int max_idle[]    = {65535 * HZ};
-static int min_route[1],        max_route[]   = {1};
+static int min_route[]   = {0}, max_route[]   = {1};
 static int min_fails[]   = {1}, max_fails[]   = {10};
 
 static struct ctl_table_header *nr_table_header;

<Prev in Thread] Current Thread [Next in Thread>
  • [PATCH] (1/11) netrom - fix sysctl initializers, Stephen Hemminger <=