浏览代码

* woops

svn: 969
Bryan Drewery 22 年之前
父节点
当前提交
d38c12e532
共有 1 个文件被更改,包括 6 次插入1 次删除
  1. 6 1
      src/userent.c

+ 6 - 1
src/userent.c

@@ -784,6 +784,11 @@ static int hosts_write_userfile(FILE *f, struct userrec *u, struct user_entry *e
 }
 #endif /* HUB */
 
+static int hosts_null(struct userrec *u, struct user_entry *e)
+{
+  return 1;
+}
+
 static int hosts_kill(struct user_entry *e)
 {
   list_type_kill(e->u.list);
@@ -878,7 +883,7 @@ struct user_entry_type USERENTRY_HOSTS =
 {
   0,
   hosts_gotshare,
-  NULL,
+  hosts_null,
 #ifdef HUB
   hosts_write_userfile,
 #endif /* HUB */