瀏覽代碼

make add_ndp_entry static

tags/v0.9.3
Holger Lubitz 17 年之前
父節點
當前提交
fa11865de0
共有 1 個檔案被更改,包括 3 行新增2 行删除
  1. 3
    2
      src/net/ndp.c

+ 3
- 2
src/net/ndp.c 查看文件

@@ -65,8 +65,9 @@ ndp_find_entry ( struct in6_addr *in6 ) {
65 65
  * @v ll_addr	Link-layer address
66 66
  * @v state	State of the entry - one of the NDP_STATE_XXX values
67 67
  */
68
-void add_ndp_entry ( struct net_device *netdev, struct in6_addr *in6,
69
-		     void *ll_addr, int state ) {
68
+static void 
69
+add_ndp_entry ( struct net_device *netdev, struct in6_addr *in6,
70
+		void *ll_addr, int state ) {
70 71
 	struct ndp_entry *ndp;
71 72
 	ndp = &ndp_table[next_new_ndp_entry++ % NUM_NDP_ENTRIES];
72 73
 

Loading…
取消
儲存