33 lines
733 B
Diff
33 lines
733 B
Diff
|
From c181dc0c3bf832e3ff94c9bc12bf054289c9748b Mon Sep 17 00:00:00 2001
|
||
|
Date: Thu, 7 Jul 2016 14:27:52 +0300
|
||
|
Subject: Замена устаревшей функции
|
||
|
MIME-Version: 1.0
|
||
|
Content-Type: text/plain; charset=UTF-8
|
||
|
Content-Transfer-Encoding: 8bit
|
||
|
|
||
|
---
|
||
|
oops.c | 7 ++-----
|
||
|
1 file changed, 2 insertions(+), 5 deletions(-)
|
||
|
|
||
|
diff --git a/oops.c b/oops.c
|
||
|
index ba3a68b..fda5cfd 100644
|
||
|
--- a/oops.c
|
||
|
+++ b/oops.c
|
||
|
@@ -207,11 +207,8 @@ void oops_proc_add (void)
|
||
|
|
||
|
mutex_lock (&oops_lock);
|
||
|
|
||
|
- entry = create_proc_entry (PROCNAME, 0, NULL);
|
||
|
-
|
||
|
- if (entry) {
|
||
|
- entry->proc_fops = &oops_proc_operations;
|
||
|
- }
|
||
|
+ entry = proc_create (PROCNAME, 0, NULL, &oops_proc_operations);
|
||
|
+
|
||
|
|
||
|
mutex_unlock (&oops_lock);
|
||
|
}
|
||
|
--
|
||
|
2.16.4
|
||
|
|