[pisa-src] r1434 - in trunk: libpisa/pisaconf.c libpisa/util.c pairing/management.c pisacd/cdmain.c pisasd/sdclients.c pisasd/sdconf.c pisasd/sdmain.c

  • From: Diego Biurrun <diego@xxxxxxxxxx>
  • To: pisa-src@xxxxxxxxxxxxx
  • Date: Thu, 29 Oct 2009 19:32:07 +0100

Author: biurrun
Date: Thu Oct 29 19:32:07 2009
New Revision: 1434

Log:
Mark functions only used within a file as static.

Modified:
   trunk/libpisa/pisaconf.c
   trunk/libpisa/util.c
   trunk/pairing/management.c
   trunk/pisacd/cdmain.c
   trunk/pisasd/sdclients.c
   trunk/pisasd/sdconf.c
   trunk/pisasd/sdmain.c

Modified: trunk/libpisa/pisaconf.c
==============================================================================
--- trunk/libpisa/pisaconf.c    Thu Oct 29 19:30:35 2009        (r1433)
+++ trunk/libpisa/pisaconf.c    Thu Oct 29 19:32:07 2009        (r1434)
@@ -30,7 +30,7 @@
  * the specific request.
  * @param packet the complete config packet.
  */
-void pisa_conf_handle_request_packet(pisa_conf_packet *packet)
+static void pisa_conf_handle_request_packet(pisa_conf_packet *packet)
 {
        pisa_conf_handle_cb f = NULL;
 
@@ -357,7 +357,7 @@
 /**
  * Tokenize a line of input into the int argc, char *argv[] format.
  */
-void pisa_conf_tokenize_line(char *buffer, int *argc, char *argv[])
+static void pisa_conf_tokenize_line(char *buffer, int *argc, char *argv[])
 {
        char *p = buffer;
 

Modified: trunk/libpisa/util.c
==============================================================================
--- trunk/libpisa/util.c        Thu Oct 29 19:30:35 2009        (r1433)
+++ trunk/libpisa/util.c        Thu Oct 29 19:32:07 2009        (r1434)
@@ -400,7 +400,7 @@
 }
 
 #ifndef __KERNEL__
-int pisa_convert_string_to_address_v4(const char *str, struct in_addr *ip){
+static int pisa_convert_string_to_address_v4(const char *str, struct in_addr 
*ip){
        int ret = 0, err = 0;
 
        ret = inet_pton(AF_INET, str, ip);

Modified: trunk/pairing/management.c
==============================================================================
--- trunk/pairing/management.c  Thu Oct 29 19:30:35 2009        (r1433)
+++ trunk/pairing/management.c  Thu Oct 29 19:32:07 2009        (r1434)
@@ -275,8 +275,8 @@
  *
  * @return The corresponding userlist_entry if the HIT was found. Otherwise 
NULL.
  */
-pisa_userlist_entry *pisa_userlist_find_hit(const pisa_userlist *ul,
-                    const char *hit)
+static pisa_userlist_entry *pisa_userlist_find_hit(const pisa_userlist *ul,
+                                                   const char *hit)
 {
 
     pisa_userlist_entry s;
@@ -301,7 +301,8 @@
  *
  * @return The corresponding userlist_entry if the HIT was found. Otherwise 
NULL.
  */
-pisa_userlist_entry *pisa_userlist_find_username(const pisa_userlist *ul, 
const char *name)
+static pisa_userlist_entry *pisa_userlist_find_username(const pisa_userlist 
*ul,
+                                                        const char *name)
 {
 
     pisa_userlist_entry s;

Modified: trunk/pisacd/cdmain.c
==============================================================================
--- trunk/pisacd/cdmain.c       Thu Oct 29 19:30:35 2009        (r1433)
+++ trunk/pisacd/cdmain.c       Thu Oct 29 19:32:07 2009        (r1434)
@@ -58,7 +58,7 @@
  *
  * @param entry The entry associated with this connection
  */
-void pisacd_cleanup_after_removed_connection(pisa_conmgr_entry* entry)
+static void pisacd_cleanup_after_removed_connection(pisa_conmgr_entry* entry)
 {
        pisa_pending_remove_by_entry(entry);
        if (entry->timeout_task)

Modified: trunk/pisasd/sdclients.c
==============================================================================
--- trunk/pisasd/sdclients.c    Thu Oct 29 19:30:35 2009        (r1433)
+++ trunk/pisasd/sdclients.c    Thu Oct 29 19:32:07 2009        (r1434)
@@ -91,7 +91,7 @@
  * @param ipv4 the client's new local IPv4 address if a match was found
  * @return 1 on success, 0 otherwise
  */
-int pisa_client_get_local_ipv4_static(config_setting_t *s, struct in6_addr 
*ipv6, struct in_addr *ipv4)
+static int pisa_client_get_local_ipv4_static(config_setting_t *s, struct 
in6_addr *ipv6, struct in_addr *ipv4)
 {
        const char *hit = NULL, *local = NULL;
        struct in6_addr addr;

Modified: trunk/pisasd/sdconf.c
==============================================================================
--- trunk/pisasd/sdconf.c       Thu Oct 29 19:30:35 2009        (r1433)
+++ trunk/pisasd/sdconf.c       Thu Oct 29 19:32:07 2009        (r1434)
@@ -78,7 +78,7 @@
        PISA_INFO("Using configuration file %s\n", sd_cfg.conffile);
 }
 
-void sdconf_read_is_relay(void)
+static void sdconf_read_is_relay(void)
 {
         pisa_cfg_get_bool_value("is_relay",&sd_cfg.is_relay);
 }

Modified: trunk/pisasd/sdmain.c
==============================================================================
--- trunk/pisasd/sdmain.c       Thu Oct 29 19:30:35 2009        (r1433)
+++ trunk/pisasd/sdmain.c       Thu Oct 29 19:32:07 2009        (r1434)
@@ -75,7 +75,7 @@
  *
  * @param entry The entry associated with this connection
  */
-void pisasd_cleanup_after_removed_connection(pisa_conmgr_entry* entry)
+static void pisasd_cleanup_after_removed_connection(pisa_conmgr_entry* entry)
 {
        if (entry->heartbeat_task)
                pisa_sched_remove(&sd_ctx.scheduler, entry->heartbeat_task);

Other related posts:

  • » [pisa-src] r1434 - in trunk: libpisa/pisaconf.c libpisa/util.c pairing/management.c pisacd/cdmain.c pisasd/sdclients.c pisasd/sdconf.c pisasd/sdmain.c - Diego Biurrun