X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=net%2Fcore%2Fpktgen.c;h=b385cc8179137f1ab6255e16542a358440b71535;hb=70790a4b5cd6c0291e5b1a2836e2832d46036ac6;hp=3821caa36870076c092442c1918e5f914f3f248b;hpb=413ba3004a4036bb5d6e52d2faa2b19cb13561dc;p=linux-2.6.git diff --git a/net/core/pktgen.c b/net/core/pktgen.c index 3821caa36..b385cc817 100644 --- a/net/core/pktgen.c +++ b/net/core/pktgen.c @@ -1355,7 +1355,7 @@ static int __init init(void) pginfos[i].udp_dst_max = 9; sprintf(pginfos[i].fname, "net/%s/pg%i", PG_PROC_DIR, i); - pginfos[i].proc_ent = create_proc_entry(pginfos[i].fname, 0600, 0); + pginfos[i].proc_ent = create_proc_entry(pginfos[i].fname, 0600, NULL); if (!pginfos[i].proc_ent) { printk("pktgen: Error: cannot create net/%s/pg procfs entry.\n", PG_PROC_DIR); goto cleanup_mem; @@ -1366,7 +1366,7 @@ static int __init init(void) pginfos[i].proc_ent->owner = THIS_MODULE; sprintf(pginfos[i].busy_fname, "net/%s/pg_busy%i", PG_PROC_DIR, i); - pginfos[i].busy_proc_ent = create_proc_entry(pginfos[i].busy_fname, 0, 0); + pginfos[i].busy_proc_ent = create_proc_entry(pginfos[i].busy_fname, 0, NULL); if (!pginfos[i].busy_proc_ent) { printk("pktgen: Error: cannot create net/%s/pg_busy procfs entry.\n", PG_PROC_DIR); goto cleanup_mem;