]> git.puffer.fish Git - matthieu/frr.git/commitdiff
[ospfclient] add static qualifier
authorpaul <paul>
Thu, 24 Nov 2005 12:40:39 +0000 (12:40 +0000)
committerpaul <paul>
Thu, 24 Nov 2005 12:40:39 +0000 (12:40 +0000)
2005-11-24 Paul Jakma <paul.jakma@sun.com>

* ospf_apiclient.c: add static qualifier to relevant functions.
* ospfclient.c: ditto

ospfclient/ChangeLog
ospfclient/ospf_apiclient.c
ospfclient/ospfclient.c

index 3c6b46203ca61c3fcfba9c4a843f7c81c010b720..e678affdc428f21403bca4d0033ac72601d24fd8 100644 (file)
@@ -1,3 +1,8 @@
+2005-11-24 Paul Jakma <paul.jakma@sun.com>
+
+       * ospf_apiclient.c: add static qualifier to relevant functions.
+       * ospfclient.c: ditto
+
 2005-04-20 Paul Jakma <paul@dishone.st>
 
        * Makefile.am: Add @INCLUDES@ and srcdir to allow out-of-tree
index d6aa6387586003e53b223e501c4b8e3872c3eede..09d90b3a2914b208be03fa1e6e299bf172b0402c 100644 (file)
@@ -69,7 +69,7 @@ void ospf_apiclient_handle_delete_notify (struct ospf_apiclient *oclient,
  * -----------------------------------------------------------
  */
 
-unsigned short
+static unsigned short
 ospf_apiclient_getport (void)
 {
   struct servent *sp = getservbyname ("ospfapi", "tcp");
@@ -91,7 +91,7 @@ ospf_apiclient_connect (char *host, int syncport)
   struct hostent *hp;
   struct ospf_apiclient *new;
   int size = 0;
-  int peeraddrlen;
+  unsigned int peeraddrlen;
   int async_server_sock;
   int fd1, fd2;
   int ret;
@@ -294,7 +294,7 @@ ospf_apiclient_close (struct ospf_apiclient *oclient)
  */
 
 /* Send synchronous request, wait for reply */
-int
+static int
 ospf_apiclient_send_request (struct ospf_apiclient *oclient, struct msg *msg)
 {
   u_int32_t reqseq;
@@ -505,7 +505,7 @@ ospf_apiclient_lsa_delete (struct ospf_apiclient *oclient,
  * -----------------------------------------------------------
  */
 
-void
+static void
 ospf_apiclient_handle_ready (struct ospf_apiclient *oclient, struct msg *msg)
 {
   struct msg_ready_notify *r;
@@ -518,7 +518,7 @@ ospf_apiclient_handle_ready (struct ospf_apiclient *oclient, struct msg *msg)
     }
 }
 
-void
+static void
 ospf_apiclient_handle_new_if (struct ospf_apiclient *oclient, struct msg *msg)
 {
   struct msg_new_if *n;
@@ -531,7 +531,7 @@ ospf_apiclient_handle_new_if (struct ospf_apiclient *oclient, struct msg *msg)
     }
 }
 
-void
+static void
 ospf_apiclient_handle_del_if (struct ospf_apiclient *oclient, struct msg *msg)
 {
   struct msg_del_if *d;
@@ -544,7 +544,7 @@ ospf_apiclient_handle_del_if (struct ospf_apiclient *oclient, struct msg *msg)
     }
 }
 
-void
+static void
 ospf_apiclient_handle_ism_change (struct ospf_apiclient *oclient,
                                  struct msg *msg)
 {
@@ -559,7 +559,7 @@ ospf_apiclient_handle_ism_change (struct ospf_apiclient *oclient,
 
 }
 
-void
+static void
 ospf_apiclient_handle_nsm_change (struct ospf_apiclient *oclient,
                                  struct msg *msg)
 {
@@ -573,7 +573,7 @@ ospf_apiclient_handle_nsm_change (struct ospf_apiclient *oclient,
     }
 }
 
-void
+static void
 ospf_apiclient_handle_lsa_update (struct ospf_apiclient *oclient,
                                  struct msg *msg)
 {
@@ -604,7 +604,7 @@ ospf_apiclient_handle_lsa_update (struct ospf_apiclient *oclient,
   XFREE (MTYPE_OSPF_APICLIENT, lsa);
 }
 
-void
+static void
 ospf_apiclient_handle_lsa_delete (struct ospf_apiclient *oclient,
                                  struct msg *msg)
 {
@@ -635,7 +635,7 @@ ospf_apiclient_handle_lsa_delete (struct ospf_apiclient *oclient,
   XFREE (MTYPE_OSPF_APICLIENT, lsa);
 }
 
-void
+static void
 ospf_apiclient_msghandle (struct ospf_apiclient *oclient, struct msg *msg)
 {
   /* Call message handler function. */
index 2801087217eccaeea57483dd6ed97e5c9ddffce9..b00561555c8cc1c514529ef0dae7fa508290118e 100644 (file)
@@ -64,7 +64,7 @@ struct my_opaque_lsa
  * ---------------------------------------------------------
  */
 
-int
+static int
 lsa_delete (struct thread *t)
 {
   struct ospf_apiclient *oclient;
@@ -85,7 +85,7 @@ lsa_delete (struct thread *t)
   return rc;
 }
 
-int
+static int
 lsa_inject (struct thread *t)
 {
   struct ospf_apiclient *cl;
@@ -126,7 +126,7 @@ lsa_inject (struct thread *t)
 
 /* This thread handles asynchronous messages coming in from the OSPF
    API server */
-int
+static int
 lsa_read (struct thread *thread)
 {
   struct ospf_apiclient *oclient;
@@ -156,7 +156,7 @@ lsa_read (struct thread *thread)
  * ---------------------------------------------------------
  */
 
-void
+static void
 lsa_update_callback (struct in_addr ifaddr, struct in_addr area_id,
                     u_char is_self_originated,
                     struct lsa_header *lsa)
@@ -182,7 +182,7 @@ lsa_update_callback (struct in_addr ifaddr, struct in_addr area_id,
   ospf_lsa_header_dump (lsa);
 }
 
-void
+static void
 lsa_delete_callback (struct in_addr ifaddr, struct in_addr area_id,
                     u_char is_self_originated,
                     struct lsa_header *lsa)
@@ -195,7 +195,7 @@ lsa_delete_callback (struct in_addr ifaddr, struct in_addr area_id,
   ospf_lsa_header_dump (lsa);
 }
 
-void
+static void
 ready_callback (u_char lsa_type, u_char opaque_type, struct in_addr addr)
 {
   printf ("ready_callback: lsa_type: %d opaque_type: %d addr=%s\n",
@@ -211,20 +211,20 @@ ready_callback (u_char lsa_type, u_char opaque_type, struct in_addr addr)
   thread_add_timer (master, lsa_delete, oclient, 30);
 }
 
-void
+static void
 new_if_callback (struct in_addr ifaddr, struct in_addr area_id)
 {
   printf ("new_if_callback: ifaddr: %s ", inet_ntoa (ifaddr));
   printf ("area_id: %s\n", inet_ntoa (area_id));
 }
 
-void
+static void
 del_if_callback (struct in_addr ifaddr)
 {
   printf ("new_if_callback: ifaddr: %s\n ", inet_ntoa (ifaddr));
 }
 
-void
+static void
 ism_change_callback (struct in_addr ifaddr, struct in_addr area_id,
                     u_char state)
 {
@@ -233,7 +233,7 @@ ism_change_callback (struct in_addr ifaddr, struct in_addr area_id,
   printf ("state: %d [%s]\n", state, LOOKUP (ospf_ism_state_msg, state));
 }
 
-void
+static void
 nsm_change_callback (struct in_addr ifaddr, struct in_addr nbraddr,
                     struct in_addr router_id, u_char state)
 {
@@ -249,7 +249,7 @@ nsm_change_callback (struct in_addr ifaddr, struct in_addr nbraddr,
  * ---------------------------------------------------------
  */
 
-int usage()
+static int usage()
 {
   printf("Usage: ospfclient <ospfd> <lsatype> <opaquetype> <opaqueid> <ifaddr> <areaid>\n");
   printf("where ospfd     : router where API-enabled OSPF daemon is running\n");