Просмотр исходного кода

ncd: modules: net_watch_interfaces: make functions static

ambrop7 14 лет назад
Родитель
Сommit
6488d1ce5b
1 измененных файлов с 2 добавлено и 2 удалено
  1. 2 2
      ncd/modules/net_watch_interfaces.c

+ 2 - 2
ncd/modules/net_watch_interfaces.c

@@ -72,7 +72,7 @@ struct nextevent_instance {
 
 
 static void templ_func_free (struct instance *o);
 static void templ_func_free (struct instance *o);
 
 
-struct device * find_device_by_ifname (struct instance *o, const char *ifname)
+static struct device * find_device_by_ifname (struct instance *o, const char *ifname)
 {
 {
     LinkedList1Node *list_node = LinkedList1_GetFirst(&o->devices_list);
     LinkedList1Node *list_node = LinkedList1_GetFirst(&o->devices_list);
     while (list_node) {
     while (list_node) {
@@ -86,7 +86,7 @@ struct device * find_device_by_ifname (struct instance *o, const char *ifname)
     return NULL;
     return NULL;
 }
 }
 
 
-struct device * find_device_by_devpath (struct instance *o, const char *devpath)
+static struct device * find_device_by_devpath (struct instance *o, const char *devpath)
 {
 {
     LinkedList1Node *list_node = LinkedList1_GetFirst(&o->devices_list);
     LinkedList1Node *list_node = LinkedList1_GetFirst(&o->devices_list);
     while (list_node) {
     while (list_node) {